Skip to content

Commit ff368ca

Browse files
committed
Restore test for equals
1 parent 02f67e2 commit ff368ca

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/equal.test.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,11 @@ test('URN Equals', (t) => {
6565
// t.equal(URI.equal('urn:foo:a123%2C456', 'URN:FOO:a123%2c456'), true)
6666

6767
runTest(t, suite)
68+
69+
t.throws(() => {
70+
fn('urn:', 'urn:FOO:a123,456')
71+
}, 'URN without nid cannot be serialized')
72+
6873
t.end()
6974
})
7075

0 commit comments

Comments
 (0)