fix(database): remove dropAllTables

This commit is contained in:
chenos 2022-02-15 09:09:13 +08:00
parent 405ff75c1b
commit 6bf416d5c4

View File

@ -1,7 +1,7 @@
import { mockDatabase } from '../index';
import { BelongsToManyRepository } from '../../relation-repository/belongs-to-many-repository';
import { Collection } from '@nocobase/database';
import Database from '../../database';
import { Collection, HasManyRepository } from '@nocobase/database';
import { BelongsToManyRepository } from '../../relation-repository/belongs-to-many-repository';
import { mockDatabase } from '../index';
describe('belongs to many with target key', function () {
let db: Database;
@ -158,7 +158,6 @@ describe('belongs to many', () => {
],
});
await db.sequelize.getQueryInterface().dropAllTables();
await db.sync({ force: true });
});