mirror of
https://git.mirrors.martin98.com/https://github.com/actions/toolkit
synced 2026-01-03 12:22:57 +08:00
Fix tests
This commit is contained in:
parent
3dcd65e44b
commit
4ff3b554b8
@ -157,12 +157,12 @@ describe('@actions/core', () => {
|
|||||||
|
|
||||||
it('startGroup starts a new group', () => {
|
it('startGroup starts a new group', () => {
|
||||||
core.startGroup('my-group')
|
core.startGroup('my-group')
|
||||||
assertWriteCalls([`##[group]my-group${os.EOL}`])
|
assertWriteCalls([`::group::my-group${os.EOL}`])
|
||||||
})
|
})
|
||||||
|
|
||||||
it('endGroup ends new group', () => {
|
it('endGroup ends new group', () => {
|
||||||
core.endGroup()
|
core.endGroup()
|
||||||
assertWriteCalls([`##[endgroup]${os.EOL}`])
|
assertWriteCalls([`::endgroup::${os.EOL}`])
|
||||||
})
|
})
|
||||||
|
|
||||||
it('group wraps an async call in a group', async () => {
|
it('group wraps an async call in a group', async () => {
|
||||||
@ -172,9 +172,9 @@ describe('@actions/core', () => {
|
|||||||
})
|
})
|
||||||
expect(result).toBe(true)
|
expect(result).toBe(true)
|
||||||
assertWriteCalls([
|
assertWriteCalls([
|
||||||
`##[group]mygroup${os.EOL}`,
|
`::group::mygroup${os.EOL}`,
|
||||||
'in my group\n',
|
'in my group\n',
|
||||||
`##[endgroup]${os.EOL}`
|
`::endgroup::${os.EOL}`
|
||||||
])
|
])
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user