mirror of
https://github.com/moparisthebest/mail
synced 2025-02-17 23:40:22 -05:00
fix mail list ctrl test
This commit is contained in:
parent
59d00f0de9
commit
9337272b3a
@ -178,7 +178,7 @@ define(function(require) {
|
|||||||
});
|
});
|
||||||
|
|
||||||
describe('synchronize', function() {
|
describe('synchronize', function() {
|
||||||
it('should do imap sync and display mails', function() {
|
it('should do imap sync and display mails', function(done) {
|
||||||
scope._stopWatchTask();
|
scope._stopWatchTask();
|
||||||
|
|
||||||
emailDaoMock.sync.yieldsAsync();
|
emailDaoMock.sync.yieldsAsync();
|
||||||
@ -195,6 +195,7 @@ define(function(require) {
|
|||||||
scope.synchronize(function() {
|
scope.synchronize(function() {
|
||||||
expect(scope.state.nav.currentFolder.messages).to.deep.equal(emails);
|
expect(scope.state.nav.currentFolder.messages).to.deep.equal(emails);
|
||||||
expect(scope.state.mailList.selected).to.exist;
|
expect(scope.state.mailList.selected).to.exist;
|
||||||
|
done();
|
||||||
});
|
});
|
||||||
|
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user