mirror of
https://git.mirrors.martin98.com/https://github.com/actions/toolkit
synced 2026-04-03 18:33:26 +08:00
Add assertion for return value of core.group
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user