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