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