Skip to content

Commit ee218c5

Browse files
committed
and sure test relative URL too
1 parent 4dd579f commit ee218c5

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test/unit/tw_external.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,10 @@ test('evalAndReturn', t => {
4949
t.end();
5050
});
5151
});
52+
53+
test('relative URL throws', t => {
54+
external.fetch('./test.js').catch(err => {
55+
t.equal(err.message, `Unsupported URL: ./test.js`);
56+
t.end();
57+
});
58+
});

0 commit comments

Comments
 (0)