Yuki Takei 2 лет назад
Родитель
Сommit
efc0f6b443
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      apps/app/config/migrate-mongo-config.spec.ts

+ 2 - 2
apps/app/test/unit/migrate-mongo-config.test.js → apps/app/config/migrate-mongo-config.spec.ts

@@ -16,7 +16,7 @@ describe('config/migrate-mongo-config.js', () => {
     });
 
     const requireConfig = () => {
-      require('../../config/migrate-mongo-config');
+      require('./migrate-mongo-config');
     };
 
     expect(requireConfig).toThrow('An env var MIGRATIONS_DIR must be set.');
@@ -54,7 +54,7 @@ describe('config/migrate-mongo-config.js', () => {
         };
       });
 
-      const { mongodb, migrationsDir, changelogCollectionName } = require('../../config/migrate-mongo-config');
+      const { mongodb, migrationsDir, changelogCollectionName } = require('./migrate-mongo-config');
 
       jest.dontMock('../../src/server/util/mongoose-utils');