mirror of https://github.com/actions/toolkit
test
parent
fe3e7ce9a7
commit
30dbb496d3
|
@ -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', () => {
|
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