mirror of
https://github.com/knex/knex.git
synced 2025-07-10 18:41:18 +00:00
24 lines
513 B
JavaScript
24 lines
513 B
JavaScript
![]() |
const { getAllDbs, getKnexForDb } = require('./util/knex-instance-provider');
|
||
|
|
||
|
describe('knex', () => {
|
||
|
getAllDbs().forEach((db) => {
|
||
|
describe(db, () => {
|
||
|
let knex;
|
||
|
before(() => {
|
||
|
knex = getKnexForDb(db);
|
||
|
});
|
||
|
|
||
|
after(() => {
|
||
|
return knex.destroy();
|
||
|
});
|
||
|
|
||
|
describe('destroy', () => {
|
||
|
it('works correctly when called multiple times', async () => {
|
||
|
await knex.destroy();
|
||
|
await knex.destroy();
|
||
|
});
|
||
|
});
|
||
|
});
|
||
|
});
|
||
|
});
|