mirror of https://github.com/actions/toolkit
Add assertion for return value of core.group
parent
80fc75ef9c
commit
8f9992ca17
|
@ -166,9 +166,11 @@ describe('@actions/core', () => {
|
||||||
})
|
})
|
||||||
|
|
||||||
it('group wraps an async call in a group', async () => {
|
it('group wraps an async call in a group', async () => {
|
||||||
await core.group('mygroup', async () => {
|
const result = await core.group('mygroup', async () => {
|
||||||
process.stdout.write('in my group\n')
|
process.stdout.write('in my group\n')
|
||||||
|
return true
|
||||||
})
|
})
|
||||||
|
expect(result).toBe(true)
|
||||||
assertWriteCalls([
|
assertWriteCalls([
|
||||||
`##[group]mygroup${os.EOL}`,
|
`##[group]mygroup${os.EOL}`,
|
||||||
'in my group\n',
|
'in my group\n',
|
||||||
|
|
Loading…
Reference in New Issue