Skip to content

Commit b0a9173

Browse files
test(core): merge duplicate beforeEach hooks in bulkInsert tests
1 parent 180db45 commit b0a9173

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

packages/core/test/integration/query-interface/bulk-insert.test.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,9 @@ const { DataTypes } = require('@sequelize/core');
1111
const dialect = Support.getTestDialect();
1212

1313
describe('QueryInterface#bulkInsert', () => {
14-
beforeEach(function setupQueryInterface() {
14+
beforeEach(async function setupQueryInterface() {
1515
this.queryInterface = this.sequelize.queryInterface;
16-
});
1716

18-
beforeEach(async function createTestTable() {
1917
await this.queryInterface.createTable('UsersBulkInsert', {
2018
id: {
2119
type: DataTypes.INTEGER,
@@ -38,10 +36,10 @@ describe('QueryInterface#bulkInsert', () => {
3836
});
3937

4038
if (['mysql', 'mariadb'].includes(dialect)) {
41-
// MySQL & MariaDB only return IDs
39+
// MySQL & MariaDB only return IDs
4240
expect(result).to.deep.equal([{ id: 1 }, { id: 2 }, { id: 3 }]);
4341
} else {
44-
// Postgres, MSSQL, DB2, SQLite return full rows with names
42+
// Postgres, MSSQL, DB2, SQLite return full rows with names
4543
expect(result).to.deep.equal([
4644
{ id: 1, name: 'Alice' },
4745
{ id: 2, name: 'Bob' },

0 commit comments

Comments
 (0)