不要怂,就是干,撸起袖子干!

Commit e03a537c by Sushant

fix(tests): missing clock instance

1 parent d7241f76
Showing with 13 additions and 0 deletions
...@@ -5,9 +5,22 @@ const chai = require('chai'), ...@@ -5,9 +5,22 @@ const chai = require('chai'),
Sequelize = require('../../../index'), Sequelize = require('../../../index'),
Support = require('../support'), Support = require('../support'),
DataTypes = require('../../../lib/data-types'), DataTypes = require('../../../lib/data-types'),
sinon = require('sinon'),
current = Support.sequelize; current = Support.sequelize;
describe(Support.getTestDialectTeaser('Instance'), () => { describe(Support.getTestDialectTeaser('Instance'), () => {
before(function() {
this.clock = sinon.useFakeTimers();
});
afterEach(function() {
this.clock.reset();
});
after(function() {
this.clock.restore();
});
beforeEach(function() { beforeEach(function() {
this.User = this.sequelize.define('User', { this.User = this.sequelize.define('User', {
username: { type: DataTypes.STRING }, username: { type: DataTypes.STRING },
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!