From 30dbb496d386c508e4d9891bf5f0a0a68eca7637 Mon Sep 17 00:00:00 2001 From: JoannaaKL Date: Thu, 9 Nov 2023 13:20:38 +0000 Subject: [PATCH] test --- packages/core/__tests__/core.test.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/packages/core/__tests__/core.test.ts b/packages/core/__tests__/core.test.ts index 09bc587b..62b7817b 100644 --- a/packages/core/__tests__/core.test.ts +++ b/packages/core/__tests__/core.test.ts @@ -168,6 +168,15 @@ describe('@actions/core', () => { ]) }) + it('setSecret produces the correct command 2', () => { + core.setSecret('%xxx') + core.setSecret('%25') + assertWriteCalls([ + `::add-mask::%25xxx`, + `::add-mask::%2525` + ]) + }) + it('prependPath produces the correct commands and sets the env', () => { const command = 'PATH' createFileCommandFile(command)