Skip to content

Commit 729cdb7

Browse files
committed
Fix assert.throws in node 8.9
1 parent 9d27d52 commit 729cdb7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

fluent/test/patterns_test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ suite('Patterns', function(){
8888
const msg = bundle.getMessage('foo');
8989
assert.throws(
9090
() => bundle.formatPattern(msg.value, args, errs),
91-
new TypeError("Invalid Pattern type")
91+
/Invalid Pattern type/
9292
);
9393
});
9494

fluent/test/values_format_test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ suite('Formatting values', function(){
6363
const msg = bundle.getMessage('key5');
6464
assert.throws(
6565
() => bundle.formatPattern(msg.value, args, errs),
66-
new TypeError("Invalid Pattern type")
66+
/Invalid Pattern type/
6767
);
6868
});
6969

0 commit comments

Comments
 (0)