1
0
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:
Felix Hammerl 2013-12-04 15:53:49 +01:00
parent 59d00f0de9
commit 9337272b3a

View File

@ -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();
}); });
}); });