mirror of
https://git.mirrors.martin98.com/https://github.com/actions/toolkit
synced 2025-11-18 16:01:06 +08:00
Add assertion for return value of core.group
This commit is contained in:
parent
80fc75ef9c
commit
8f9992ca17
@ -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',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user