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)