mirror of
https://github.com/codecov/codecov-action.git
synced 2026-02-10 04:57: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();
|
||||
|
||||
expect(execArgs).toMatchObject([
|
||||
...baseExpectation,
|
||||
'-f',
|
||||
'./client-coverage.txt',
|
||||
'-f',
|
||||
'./lcov.info',
|
||||
]);
|
||||
expect(execArgs).toEqual(
|
||||
expect.arrayContaining([
|
||||
...baseExpectation,
|
||||
'-f',
|
||||
'./client-coverage.txt',
|
||||
'-f',
|
||||
'./lcov.info',
|
||||
]),
|
||||
);
|
||||
|
||||
for (const env of Object.keys(envs)) {
|
||||
delete process.env['INPUT_' + env.toUpperCase()];
|
||||
|
|
@ -162,13 +164,15 @@ describe('trim arguments after splitting them', () => {
|
|||
|
||||
const {execArgs} = buildExec();
|
||||
|
||||
expect(execArgs).toMatchObject([
|
||||
...baseExpectation,
|
||||
'-F',
|
||||
'ios',
|
||||
'-F',
|
||||
'mobile',
|
||||
]);
|
||||
expect(execArgs).toEqual(
|
||||
expect.arrayContaining([
|
||||
...baseExpectation,
|
||||
'-F',
|
||||
'ios',
|
||||
'-F',
|
||||
'mobile',
|
||||
]),
|
||||
);
|
||||
|
||||
for (const env of Object.keys(envs)) {
|
||||
delete process.env['INPUT_' + env.toUpperCase()];
|
||||
|
|
@ -184,13 +188,15 @@ describe('trim arguments after splitting them', () => {
|
|||
|
||||
const {execArgs} = buildExec();
|
||||
|
||||
expect(execArgs).toMatchObject([
|
||||
...baseExpectation,
|
||||
'-X',
|
||||
'network',
|
||||
'-X',
|
||||
'gcov',
|
||||
]);
|
||||
expect(execArgs).toEqual(
|
||||
expect.arrayContaining([
|
||||
...baseExpectation,
|
||||
'-X',
|
||||
'network',
|
||||
'-X',
|
||||
'gcov',
|
||||
]),
|
||||
);
|
||||
|
||||
for (const env of Object.keys(envs)) {
|
||||
delete process.env['INPUT_' + env.toUpperCase()];
|
||||
|
|
|
|||
Loading…
Reference in a new issue