Skip to content

Commit

Permalink
test: keep quotes around fields
Browse files Browse the repository at this point in the history
Signed-off-by: CrazyMax <[email protected]>
  • Loading branch information
crazy-max committed Mar 6, 2024
1 parent 7fb5070 commit 25e3ecc
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions __tests__/util.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,12 @@ ccccccccc`,
'FOO=bar'
]);
});

it('keep quotes', async () => {
setInput('outputs', `type=image,"name=ghcr.io/nginxinc/nginx-unprivileged,docker.io/nginxinc/nginx-unprivileged",push-by-digest=true,name-canonical=true,push=true`);
const res = Util.getInputList('outputs', {ignoreComma: true});
expect(res).toEqual([`type=image,"name=ghcr.io/nginxinc/nginx-unprivileged,docker.io/nginxinc/nginx-unprivileged",push-by-digest=true,name-canonical=true,push=true`]);
});
});

describe('asyncForEach', () => {
Expand Down

0 comments on commit 25e3ecc

Please sign in to comment.