mirror of
https://github.com/codecov/codecov-action.git
synced 2026-02-11 05:27:24 +00:00
Use expect.arrayContaining
This commit is contained in:
parent
800a9b3e3d
commit
0db74381c5
1 changed files with 27 additions and 21 deletions
|
|
@ -140,13 +140,15 @@ describe('trim arguments after splitting them', () => {
|
||||||
|
|
||||||
const {execArgs} = buildExec();
|
const {execArgs} = buildExec();
|
||||||
|
|
||||||
expect(execArgs).toMatchObject([
|
expect(execArgs).toEqual(
|
||||||
...baseExpectation,
|
expect.arrayContaining([
|
||||||
'-f',
|
...baseExpectation,
|
||||||
'./client-coverage.txt',
|
'-f',
|
||||||
'-f',
|
'./client-coverage.txt',
|
||||||
'./lcov.info',
|
'-f',
|
||||||
]);
|
'./lcov.info',
|
||||||
|
]),
|
||||||
|
);
|
||||||
|
|
||||||
for (const env of Object.keys(envs)) {
|
for (const env of Object.keys(envs)) {
|
||||||
delete process.env['INPUT_' + env.toUpperCase()];
|
delete process.env['INPUT_' + env.toUpperCase()];
|
||||||
|
|
@ -162,13 +164,15 @@ describe('trim arguments after splitting them', () => {
|
||||||
|
|
||||||
const {execArgs} = buildExec();
|
const {execArgs} = buildExec();
|
||||||
|
|
||||||
expect(execArgs).toMatchObject([
|
expect(execArgs).toEqual(
|
||||||
...baseExpectation,
|
expect.arrayContaining([
|
||||||
'-F',
|
...baseExpectation,
|
||||||
'ios',
|
'-F',
|
||||||
'-F',
|
'ios',
|
||||||
'mobile',
|
'-F',
|
||||||
]);
|
'mobile',
|
||||||
|
]),
|
||||||
|
);
|
||||||
|
|
||||||
for (const env of Object.keys(envs)) {
|
for (const env of Object.keys(envs)) {
|
||||||
delete process.env['INPUT_' + env.toUpperCase()];
|
delete process.env['INPUT_' + env.toUpperCase()];
|
||||||
|
|
@ -184,13 +188,15 @@ describe('trim arguments after splitting them', () => {
|
||||||
|
|
||||||
const {execArgs} = buildExec();
|
const {execArgs} = buildExec();
|
||||||
|
|
||||||
expect(execArgs).toMatchObject([
|
expect(execArgs).toEqual(
|
||||||
...baseExpectation,
|
expect.arrayContaining([
|
||||||
'-X',
|
...baseExpectation,
|
||||||
'network',
|
'-X',
|
||||||
'-X',
|
'network',
|
||||||
'gcov',
|
'-X',
|
||||||
]);
|
'gcov',
|
||||||
|
]),
|
||||||
|
);
|
||||||
|
|
||||||
for (const env of Object.keys(envs)) {
|
for (const env of Object.keys(envs)) {
|
||||||
delete process.env['INPUT_' + env.toUpperCase()];
|
delete process.env['INPUT_' + env.toUpperCase()];
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue