From 8f9992ca1799dd193ae54508aec32378682a7bfa Mon Sep 17 00:00:00 2001 From: Jonathan Clem Date: Wed, 28 Aug 2019 22:38:30 -0400 Subject: [PATCH] Add assertion for return value of core.group --- packages/core/__tests__/lib.test.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/core/__tests__/lib.test.ts b/packages/core/__tests__/lib.test.ts index 32ba6cce..dc34213f 100644 --- a/packages/core/__tests__/lib.test.ts +++ b/packages/core/__tests__/lib.test.ts @@ -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',