Skip to content
This repository was archived by the owner on Feb 9, 2018. It is now read-only.

Commit 60ab8c8

Browse files
committed
add message check for CSS.escape
1 parent 30bc5a1 commit 60ab8c8

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

test/js/escape.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,8 @@ suite('CSS.escape polyfill', function() {
1616
var escape = typedOM.internal.escape;
1717

1818
test('Test invalid usage', function() {
19-
assert.throws(function() {
20-
CSS.escape();
21-
}, TypeError);
19+
assert.throws(function() { CSS.escape(); }, TypeError,
20+
/^Failed to execute 'escape' on 'CSS': 1 argument required, but only 0 present\.$/);
2221
assert.equal('null', CSS.escape(null));
2322
assert.equal('\\[object\\ Object\\]', CSS.escape({}));
2423
});

0 commit comments

Comments
 (0)