소스 검색

Improved test

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()', () => {
     test('should search with custom search delegator', async() => {
+      jest.restoreAllMocks();
+      jest.clearAllMocks();
+
       const Page = mongoose.model('Page');
       const User = mongoose.model('User');
       await User.insertMany([