fix: test aftereach

pull/357/head
Webber 2022-03-27 01:08:28 +01:00
parent 7278b0ba02
commit a5a2e507cd
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@ const execSpy = jest.spyOn(exec, 'exec').mockImplementation(async () => 0);
describe('System', () => {
describe('run', () => {
describe('units', () => {
afterEach(() => jest.clearAllMocks());
beforeEach(() => jest.clearAllMocks());
it('passes the command to command line', async () => {
await expect(System.run('echo test')).resolves.not.toBeNull();