mirror of
https://github.com/moparisthebest/mail
synced 2024-11-25 10:22:18 -05:00
Refactor integration tests for promises
This commit is contained in:
parent
c5a8e1c119
commit
bfe827e084
@ -192,11 +192,11 @@ Email.prototype.openFolder = function(options) {
|
||||
|
||||
self._imapClient.selectMailbox({
|
||||
path: options.folder.path
|
||||
}, function(err) {
|
||||
}, function(err, folder) {
|
||||
if (err) {
|
||||
reject(err);
|
||||
} else {
|
||||
resolve();
|
||||
resolve(folder);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user