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:
parent
59d00f0de9
commit
9337272b3a
@ -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();
|
||||
});
|
||||
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user