enable comments to avoid breaking change with current impl

Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
CrazyMax
2023-06-13 12:23:13 +02:00
parent 8ec80c3be6
commit ef7eee951a
2 changed files with 22 additions and 5 deletions

View File

@ -63,7 +63,24 @@ describe('getInputs', () => {
sepTags: ',',
tags: [],
} as Inputs
]
],
[
2,
new Map<string, string>([
['images', 'moby/buildkit\n#comment\nghcr.io/moby/mbuildkit'],
]),
{
context: ContextSource.workflow,
bakeTarget: 'docker-metadata-action',
flavor: [],
githubToken: '',
images: ['moby/buildkit', 'ghcr.io/moby/mbuildkit'],
labels: [],
sepLabels: '\n',
sepTags: '\n',
tags: [],
} as Inputs
],
])(
'[%d] given %p as inputs, returns %p',
async (num: number, inputs: Map<string, string>, expected: Inputs) => {