Fix mock restoring in abc frame test

Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This commit is contained in:
Tilman Vatteroth 2022-05-22 18:23:01 +02:00
parent e679bb4d3b
commit ddea0edbf8

View file

@ -10,9 +10,11 @@ import { AbcFrame } from './abc-frame'
import { mockI18n } from '../../test-utils/mock-i18n' import { mockI18n } from '../../test-utils/mock-i18n'
describe('AbcFrame', () => { describe('AbcFrame', () => {
beforeEach(async () => { afterEach(() => {
jest.resetModules() jest.resetModules()
jest.restoreAllMocks() jest.restoreAllMocks()
})
beforeEach(async () => {
await mockI18n() await mockI18n()
}) })