mirror of
https://git.mirrors.martin98.com/https://github.com/actions/toolkit
synced 2026-04-01 20:43:21 +08:00
add set-output command
This commit is contained in:
@@ -114,6 +114,11 @@ describe('@actions/core', () => {
|
||||
expect(core.getInput('special chars_\'\t"\\')).toBe('\'\t"\\ repsonse')
|
||||
})
|
||||
|
||||
it('setOutput produces the correct command', () => {
|
||||
core.setOutput('some output', 'some value')
|
||||
assertWriteCalls([`##[set-output name=some output;]some value${os.EOL}`])
|
||||
})
|
||||
|
||||
it('setNeutral sets the correct exit code', () => {
|
||||
core.setFailed('Failure message')
|
||||
expect(process.exitCode).toBe(ExitCode.Failure)
|
||||
|
||||
Reference in New Issue
Block a user