1
0
mirror of https://github.com/moparisthebest/mail synced 2024-11-25 18:32:20 -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() {
it('should do imap sync and display mails', function() {
it('should do imap sync and display mails', function(done) {
scope._stopWatchTask();
emailDaoMock.sync.yieldsAsync();
@ -195,6 +195,7 @@ define(function(require) {
scope.synchronize(function() {
expect(scope.state.nav.currentFolder.messages).to.deep.equal(emails);
expect(scope.state.mailList.selected).to.exist;
done();
});
});