(sequelize)
| 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'; |
no test coverage detected
searching dependent graphs…