From 78914615251d99d74a3d7f6f08dd4ef6420cdf97 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 --- __tests__/lib.test.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/__tests__/lib.test.ts b/__tests__/lib.test.ts index 32ba6cc..dc34213 100644 --- a/__tests__/lib.test.ts +++ b/__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',