mirror of
https://github.com/strapi/strapi.git
synced 2025-11-02 19:04:38 +00:00
Teardown the mock
This commit is contained in:
parent
924aca18f1
commit
29cd84c237
@ -2,7 +2,7 @@
|
||||
|
||||
const override = require('../override');
|
||||
|
||||
const strapi = {
|
||||
const strapiMock = {
|
||||
config: {
|
||||
get: () => ({
|
||||
'x-strapi-config': {
|
||||
@ -12,7 +12,12 @@ const strapi = {
|
||||
},
|
||||
};
|
||||
|
||||
let strapi = strapiMock;
|
||||
describe('Documentation plugin | Override service', () => {
|
||||
afterEach(() => {
|
||||
// Reset strapi after each test
|
||||
strapi = strapiMock;
|
||||
});
|
||||
it('should register an override', () => {
|
||||
const mockOverride = {
|
||||
openapi: '3.0.0',
|
||||
|
Loading…
x
Reference in New Issue
Block a user