☕️ Classic, reliable, trusted test framework for Node.js and the browser
Fixed wrong use of to throw that will fail with unexpected v11
Sune Simonsen017d86529273
diff --git a/test/node-unit/cli/run-helpers.spec.js b/test/node-unit/cli/run-helpers.spec.jsindex b3a0fb55..a2a63335 100644--- a/test/node-unit/cli/run-helpers.spec.js+++ b/test/node-unit/cli/run-helpers.spec.js@@ -19,7 +19,7 @@ describe('cli "run" command', function() {it('should disallow an array of module names', function() {expect(() => validatePlugin({foo: ['bar']}, 'foo'),- 'to throw',+ 'to throw a',TypeError);});