Add assertion for return value of core.group

This commit is contained in:
Jonathan Clem committed 2019-08-28 22:38:30 -04:00
1 parent c72e777a87
commit 7891461525
1 file changed
+3 -1
+3 -1
View File
@@ -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',