|
|
@@ -1,6 +1,6 @@
|
|
|
import mongoose from 'mongoose';
|
|
|
import { Collection } from 'mongodb';
|
|
|
-import { getMongoUri, mongoOptions } from '@growi/core';
|
|
|
+import { getMongoUriForTestV4, mongoOptions } from '@growi/core';
|
|
|
|
|
|
const migrate = require('~/migrations/20210913153942-migrate-slack-app-integration-schema');
|
|
|
|
|
|
@@ -9,7 +9,7 @@ describe('migrate-slack-app-integration-schema', () => {
|
|
|
let collection: Collection;
|
|
|
|
|
|
beforeAll(async() => {
|
|
|
- await mongoose.connect(getMongoUri(), mongoOptions);
|
|
|
+ await mongoose.connect(getMongoUriForTestV4(), mongoOptions);
|
|
|
collection = mongoose.connection.db.collection('slackappintegrations');
|
|
|
|
|
|
await collection.insertMany([
|