MCPcopy
hub / github.com/sequelize/sequelize / cleanup

Function cleanup

test/integration/query-interface.test.js:38–44  ·  view source on GitHub ↗
(sequelize)

Source from the content-addressed store, hash-verified

36 describe('showAllTables', () => {
37 it('should not contain views', async function() {
38 async function cleanup(sequelize) {
39 if (dialect === 'db2') {
40 await sequelize.query('DROP VIEW V_Fail');
41 } else {
42 await sequelize.query('DROP VIEW IF EXISTS V_Fail');
43 }
44 }
45 await this.queryInterface.createTable('my_test_table', { name: DataTypes.STRING });
46 await cleanup(this.sequelize);
47 const sql = dialect === 'db2' ? 'CREATE VIEW V_Fail AS SELECT 1 Id FROM SYSIBM.SYSDUMMY1' : 'CREATE VIEW V_Fail AS SELECT 1 Id';

Callers 1

Calls 1

queryMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…