promise.test.js
481 Bytes
'use strict';
const chai = require('chai'),
expect = chai.expect,
Support = require(__dirname + '/support'),
Sequelize = Support.Sequelize,
Promise = Sequelize.Promise,
Bluebird = require('bluebird');
describe('Promise', () => {
it('should be an independent copy of bluebird library', () => {
expect(Promise.prototype.then).to.be.a('function');
expect(Promise).to.not.equal(Bluebird);
expect(Promise.prototype).to.not.equal(Bluebird.prototype);
});
});