LibJS: Remove default parameter from assertThrowsError() for now

We don't support these yet, and it broke all the tests. :^)
This commit is contained in:
Andreas Kling 2020-04-20 20:33:21 +02:00
parent 364ca1f476
commit f78a92c5a9
Notes: sideshowbarker 2024-07-19 07:26:06 +09:00

View file

@ -36,7 +36,7 @@ function assertNotReached() {
* @param {string} [options.name] Expected error name
* @param {string} [options.message] Expected error message
*/
function assertThrowsError(testFunction, options = {}) {
function assertThrowsError(testFunction, options) {
try {
testFunction();
assertNotReached();