Compare commits
2 Commits
| Author | SHA1 | Date |
|---|---|---|
|
|
e0eab1f58d | |
|
|
30dbb496d3 |
|
|
@ -168,6 +168,24 @@ describe('@actions/core', () => {
|
||||||
])
|
])
|
||||||
})
|
})
|
||||||
|
|
||||||
|
it('setSecret produces the correct command 2', () => {
|
||||||
|
core.setSecret('secret val %')
|
||||||
|
core.setSecret('multi\nline\r\nsecret')
|
||||||
|
assertWriteCalls([
|
||||||
|
`::add-mask::secret val %25${os.EOL}`,
|
||||||
|
`::add-mask::multi%0Aline%0D%0Asecret${os.EOL}`
|
||||||
|
])
|
||||||
|
})
|
||||||
|
|
||||||
|
it('setSecret produces the correct command 3', () => {
|
||||||
|
core.setSecret('secret val %25')
|
||||||
|
core.setSecret('multi\nline\r\nsecret')
|
||||||
|
assertWriteCalls([
|
||||||
|
`::add-mask::secret val %2525${os.EOL}`,
|
||||||
|
`::add-mask::multi%0Aline%0D%0Asecret${os.EOL}`
|
||||||
|
])
|
||||||
|
})
|
||||||
|
|
||||||
it('prependPath produces the correct commands and sets the env', () => {
|
it('prependPath produces the correct commands and sets the env', () => {
|
||||||
const command = 'PATH'
|
const command = 'PATH'
|
||||||
createFileCommandFile(command)
|
createFileCommandFile(command)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue