Taichi Masuyama пре 4 година
родитељ
комит
f65155f6ad
1 измењених фајлова са 3 додато и 0 уклоњено
  1. 3 0
      packages/app/src/test/integration/service/search/search-service.test.js

+ 3 - 0
packages/app/src/test/integration/service/search/search-service.test.js

@@ -142,6 +142,9 @@ describe('SearchService test', () => {
 
 
   describe('searchKeyword()', () => {
   describe('searchKeyword()', () => {
     test('should search with custom search delegator', async() => {
     test('should search with custom search delegator', async() => {
+      jest.restoreAllMocks();
+      jest.clearAllMocks();
+
       const Page = mongoose.model('Page');
       const Page = mongoose.model('Page');
       const User = mongoose.model('User');
       const User = mongoose.model('User');
       await User.insertMany([
       await User.insertMany([