mirror of
https://github.com/strapi/strapi.git
synced 2025-11-02 19:04:38 +00:00
fix rest of tests
This commit is contained in:
parent
8a5097c8ba
commit
85341a4bbe
@ -81,7 +81,6 @@ describe('Content-Manager | <InputUID />', () => {
|
||||
|
||||
beforeEach(() => {
|
||||
jest.clearAllMocks();
|
||||
jest.restoreAllMocks();
|
||||
});
|
||||
|
||||
test('renders', async () => {
|
||||
|
||||
@ -62,7 +62,7 @@ jest.mock('../../../hooks', () => ({
|
||||
|
||||
describe('RepeatableComponents', () => {
|
||||
afterEach(() => {
|
||||
jest.restoreAllMocks();
|
||||
jest.clearAllMocks();
|
||||
});
|
||||
|
||||
const defaultProps = {
|
||||
|
||||
@ -86,7 +86,6 @@ describe('ADMIN | PAGES | AUTH | Register', () => {
|
||||
|
||||
beforeEach(() => {
|
||||
jest.clearAllMocks();
|
||||
jest.restoreAllMocks();
|
||||
});
|
||||
|
||||
it('Render form elements', () => {
|
||||
|
||||
@ -82,7 +82,7 @@ const makeApp = (history) => {
|
||||
|
||||
describe('ADMIN | Pages | API TOKENS | EditView', () => {
|
||||
afterAll(() => {
|
||||
jest.resetAllMocks();
|
||||
jest.clearAllMocks();
|
||||
});
|
||||
|
||||
it('renders and matches the snapshot when creating token', async () => {
|
||||
|
||||
@ -98,7 +98,6 @@ describe('Admin | Settings | Review Workflow | ReviewWorkflowsPage', () => {
|
||||
|
||||
beforeEach(() => {
|
||||
jest.clearAllMocks();
|
||||
jest.restoreAllMocks();
|
||||
});
|
||||
|
||||
test('handle initial loading state', () => {
|
||||
|
||||
@ -43,7 +43,7 @@ const render = (
|
||||
|
||||
describe('Upload - Configure', () => {
|
||||
beforeEach(() => {
|
||||
jest.restoreAllMocks();
|
||||
jest.clearAllMocks();
|
||||
});
|
||||
|
||||
describe('initial render', () => {
|
||||
|
||||
@ -46,7 +46,7 @@ describe('ADMIN | Pages | Settings | Advanced Settings', () => {
|
||||
});
|
||||
|
||||
afterAll(() => {
|
||||
jest.resetAllMocks();
|
||||
jest.clearAllMocks();
|
||||
server.close();
|
||||
});
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user