1
0
Fork 0

Add assertion for return value of core.group

pull/98/head
Jonathan Clem 2019-08-28 22:38:30 -04:00
parent 80fc75ef9c
commit 8f9992ca17
No known key found for this signature in database
GPG Key ID: 48C5B22E9FD6E80F
1 changed files with 3 additions and 1 deletions

View File

@ -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',