From 917146eee9944f14f71c28cec82da1d6b43bf458 Mon Sep 17 00:00:00 2001 From: CrazyMax Date: Tue, 13 Jun 2023 12:49:33 +0200 Subject: [PATCH] test: set input with hash symbol Signed-off-by: CrazyMax --- __tests__/context.test.ts | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/__tests__/context.test.ts b/__tests__/context.test.ts index d41cdfa..19623b8 100644 --- a/__tests__/context.test.ts +++ b/__tests__/context.test.ts @@ -285,6 +285,25 @@ describe('getArgs', () => { 'image-all' ] ], + [ + 10, + '0.10.0', + new Map([ + ['load', 'false'], + ['no-cache', 'false'], + ['push', 'false'], + ['pull', 'false'], + ['set', `*.labels.foo=bar=#baz`], + ['targets', `"image-all"`], + ]), + [ + 'bake', + '--set', `*.labels.foo=bar=#baz`, + '--metadata-file', path.join(tmpDir, 'metadata-file'), + '--provenance', `mode=min,inline-only=true,builder-id=https://github.com/docker/build-push-action/actions/runs/123456789`, + 'image-all' + ] + ], ])( '[%d] given %p with %p as inputs, returns %p', async (num: number, buildxVersion: string, inputs: Map, expected: Array) => {