1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 09:58:11 +00:00

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

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();