mirror of
https://code.forgejo.org/docker/actions-toolkit.git
synced 2025-06-26 23:55:37 -04:00
test: clear mocks
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
parent
251b9d49f3
commit
66653922b3
7 changed files with 35 additions and 7 deletions
|
@ -1,8 +1,12 @@
|
|||
import {describe, expect, jest, it} from '@jest/globals';
|
||||
import {describe, expect, jest, it, beforeEach} from '@jest/globals';
|
||||
import {Context} from '@actions/github/lib/context';
|
||||
|
||||
import {GitHub, Payload, ReposGetResponseData} from '../src/github';
|
||||
|
||||
beforeEach(() => {
|
||||
jest.clearAllMocks();
|
||||
});
|
||||
|
||||
jest.spyOn(GitHub.prototype, 'context').mockImplementation((): Context => {
|
||||
return new Context();
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue