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 () => {
|
||||
await core.group('mygroup', async () => {
|
||||
const result = await core.group('mygroup', async () => {
|
||||
process.stdout.write('in my group\n')
|
||||
return true
|
||||
})
|
||||
expect(result).toBe(true)
|
||||
assertWriteCalls([
|
||||
`##[group]mygroup${os.EOL}`,
|
||||
'in my group\n',
|
||||
|
|
Loading…
Reference in New Issue