mirror of
https://github.com/codecov/codecov-action.git
synced 2025-12-23 20:27:02 +08:00
Split out buildExec
This commit is contained in:
16
src/buildExec.test.ts
Normal file
16
src/buildExec.test.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
import buildExec from "./buildExec";
|
||||
|
||||
test('no arguments', () => {
|
||||
let { execArgs, options, filepath, fail_ci } = buildExec();
|
||||
expect(execArgs).toEqual([
|
||||
"codecov.sh",
|
||||
"-n",
|
||||
"",
|
||||
"-F",
|
||||
"",
|
||||
"-Q",
|
||||
"github-action"
|
||||
]);
|
||||
expect(filepath).toEqual('codecov.sh');
|
||||
expect(fail_ci).toBeFalsy();
|
||||
});
|
||||
Reference in New Issue
Block a user