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

promise.test.js 470 Bytes
'use strict';

const chai = require('chai'),
  expect = chai.expect,
  Support = require('./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);
  });
});