mirror of
https://github.com/moparisthebest/mail
synced 2024-12-01 13:22:16 -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({
|
self._imapClient.selectMailbox({
|
||||||
path: options.folder.path
|
path: options.folder.path
|
||||||
}, function(err) {
|
}, function(err, folder) {
|
||||||
if (err) {
|
if (err) {
|
||||||
reject(err);
|
reject(err);
|
||||||
} else {
|
} else {
|
||||||
resolve();
|
resolve(folder);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user