Skip to content

Commit 57c9347

Browse files
gene-hightowerGene Hightower
andauthored
A specific test case a co-worker was asking about. (#45)
Co-authored-by: Gene Hightower <gene@digilicious.com>
1 parent da4ba02 commit 57c9347

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/address.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,12 @@ describe('wikipedia examples: https://en.wikipedia.org/wiki/Email_address#Intern
8383
})
8484

8585
describe('bad addresses fail', function () {
86+
it('foo@example.com+bob@attacker.com', function () {
87+
assert.throws(function () {
88+
new Address('foo@example.com+bob@attacker.com');
89+
})
90+
})
91+
8692
it('<user@example.com#>', function () {
8793
assert.throws(function () {
8894
new Address('<user@example.com#>');

0 commit comments

Comments
 (0)