mirror of
https://github.com/moparisthebest/mail
synced 2024-11-22 08:52:15 -05:00
Use chai 1.9.x
This commit is contained in:
parent
fe62759613
commit
40a4b33748
@ -48,7 +48,7 @@
|
||||
"angularjs": "https://github.com/whiteout-io/angular.js/tarball/npm-version",
|
||||
"browsercrow": "https://github.com/whiteout-io/browsercrow/tarball/master",
|
||||
"browsersmtp": "https://github.com/whiteout-io/browsersmtp/tarball/master",
|
||||
"chai": "~1.7.2",
|
||||
"chai": "~1.9.2",
|
||||
"grunt": "~0.4.1",
|
||||
"grunt-browserify": "^3.0.1",
|
||||
"grunt-contrib-clean": "~0.5.0",
|
||||
|
@ -14,7 +14,7 @@ var ImapClient = require('imap-client'),
|
||||
|
||||
describe('Email DAO integration tests', function() {
|
||||
this.timeout(100000);
|
||||
chai.Assertion.includeStack = true;
|
||||
chai.config.includeStack = true;
|
||||
|
||||
var emailDao, imapClient, imapMessages, imapFolders, imapServer, smtpServer, smtpClient, userStorage,
|
||||
mockKeyPair, inbox, spam;
|
||||
|
@ -3,7 +3,7 @@
|
||||
var btnHandler = require('../../src/js/util/backbutton-handler');
|
||||
|
||||
describe('Backbutton Handler', function() {
|
||||
chai.Assertion.includeStack = true;
|
||||
chai.config.includeStack = true;
|
||||
|
||||
var scope, event;
|
||||
|
||||
|
@ -13,7 +13,7 @@ var mailreader = require('mailreader'),
|
||||
|
||||
describe('Email DAO unit tests', function() {
|
||||
// show the stack trace when an error occurred
|
||||
chai.Assertion.includeStack = true;
|
||||
chai.config.includeStack = true;
|
||||
|
||||
// SUT
|
||||
var dao;
|
||||
|
@ -8,7 +8,7 @@ var mocks = angular.mock,
|
||||
appController = require('../../src/js/app-controller'),
|
||||
notification = require('../../src/js/util/notification');
|
||||
|
||||
chai.Assertion.includeStack = true;
|
||||
chai.config.includeStack = true;
|
||||
|
||||
describe('Mail List controller unit test', function() {
|
||||
var scope, ctrl, origEmailDao, emailDaoMock, keychainMock, deviceStorageMock,
|
||||
|
@ -5,12 +5,12 @@ var OutboxBO = require('../../src/js/bo/outbox'),
|
||||
EmailDAO = require('../../src/js/dao/email-dao'),
|
||||
DeviceStorageDAO = require('../../src/js/dao/devicestorage-dao');
|
||||
|
||||
chai.Assertion.includeStack = true;
|
||||
|
||||
describe('Outbox Business Object unit test', function() {
|
||||
var outbox, emailDaoStub, devicestorageStub, keychainStub,
|
||||
dummyUser = 'spiderpig@springfield.com';
|
||||
|
||||
chai.config.includeStack = true;
|
||||
|
||||
beforeEach(function() {
|
||||
emailDaoStub = sinon.createStubInstance(EmailDAO);
|
||||
emailDaoStub._account = {
|
||||
|
@ -9,7 +9,7 @@ var DeviceStorageDAO = require('../../src/js/dao/devicestorage-dao'),
|
||||
describe('UpdateHandler', function() {
|
||||
var updateHandler, appConfigStorageStub, authStub, userStorageStub, origDbVersion;
|
||||
|
||||
chai.Assertion.includeStack = true;
|
||||
chai.config.includeStack = true;
|
||||
|
||||
beforeEach(function() {
|
||||
origDbVersion = cfg.dbVersion;
|
||||
|
Loading…
Reference in New Issue
Block a user