mirror of
https://github.com/nodemailer/wildduck.git
synced 2024-11-10 17:47:07 +08:00
fixed tests
This commit is contained in:
parent
c6bf1784b6
commit
6db874255c
3 changed files with 5 additions and 6 deletions
|
@ -1731,16 +1731,13 @@ class UserHandler {
|
|||
},
|
||||
{
|
||||
specialUse: '\\Junk'
|
||||
},
|
||||
{
|
||||
specialUse: '\\Archive'
|
||||
}
|
||||
];
|
||||
|
||||
let uidValidity = Math.floor(Date.now() / 1000);
|
||||
|
||||
return defaultMailboxes.map(mailbox => ({
|
||||
path: translation[mailbox.specialUse || mailbox.path] || mailbox.path,
|
||||
path: mailbox.path === 'INBOX' ? 'INBOX' : translation[mailbox.specialUse || mailbox.path] || mailbox.path,
|
||||
specialUse: mailbox.specialUse,
|
||||
uidValidity,
|
||||
uidNext: 1,
|
||||
|
|
|
@ -6,7 +6,10 @@
|
|||
"scripts": {
|
||||
"test": "mongo --eval 'db.dropDatabase()' wildduck-test && redis-cli -n 13 flushdb && NODE_ENV=test grunt"
|
||||
},
|
||||
"keywords": ["imap", "mail server"],
|
||||
"keywords": [
|
||||
"imap",
|
||||
"mail server"
|
||||
],
|
||||
"author": "Andris Reinman",
|
||||
"license": "EUPL-1.1",
|
||||
"devDependencies": {
|
||||
|
|
|
@ -554,7 +554,6 @@ describe('Send multiple messages', function() {
|
|||
let folders = result.children.map(mbox => ({ name: mbox.name, specialUse: mbox.specialUse || false }));
|
||||
expect(folders).to.deep.equal([
|
||||
{ name: 'INBOX', specialUse: false },
|
||||
{ name: 'Archive', specialUse: '\\Archive' },
|
||||
{ name: 'Drafts', specialUse: '\\Drafts' },
|
||||
{ name: 'Junk', specialUse: '\\Junk' },
|
||||
{ name: 'Sent Mail', specialUse: '\\Sent' },
|
||||
|
|
Loading…
Reference in a new issue