Skip to content

Commit

Permalink
Fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
andris9 committed Sep 23, 2024
1 parent 82fcb8f commit 9aa543a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/postal-mime-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,10 +106,10 @@ test('Parse calendar email', async t => {
test('Parse bounce email inline', async t => {
const mail = await readFile(Path.join(process.cwd(), 'test', 'fixtures', 'bounce.eml'));

const parser = new PostalMime({ rfc822Attachments: true });
const parser = new PostalMime();
const email = await parser.parse(mail);

assert.strictEqual(email.attachments.length, 1);
assert.strictEqual(email.attachments.length, 2);
});

test('Parse bounce email attachment', async t => {
Expand All @@ -118,5 +118,5 @@ test('Parse bounce email attachment', async t => {
const parser = new PostalMime();
const email = await parser.parse(mail);

assert.strictEqual(email.attachments.length, 0);
assert.strictEqual(email.attachments.length, 2);
});

0 comments on commit 9aa543a

Please sign in to comment.