diff --git a/test/factory/common_factory_tests.dart b/test/factory/common_factory_tests.dart index 66e2c100..105e3a9b 100644 --- a/test/factory/common_factory_tests.dart +++ b/test/factory/common_factory_tests.dart @@ -531,7 +531,7 @@ void _childKeyWarningTests(ReactComponentFactoryProxy factory, consoleErrorMessages = []; final originalConsoleError = context['console']['error'] as JsFunction; - context['console']['error'] = JsFunction.withThis((self, message, arg1, arg2, arg3) { + context['console']['error'] = JsFunction.withThis((self, [message, arg1, arg2, arg3]) { originalConsoleError.apply([message], thisArg: self); // Ignore unrelated messages diff --git a/test/lifecycle_test.dart b/test/lifecycle_test.dart index c347daf3..5a050a1f 100644 --- a/test/lifecycle_test.dart +++ b/test/lifecycle_test.dart @@ -133,7 +133,7 @@ main() { consoleErrorMessages = []; final originalConsoleError = context['console']['error'] as JsFunction; - context['console']['error'] = JsFunction.withThis((self, message) { + context['console']['error'] = JsFunction.withThis((self, [message, arg1, arg2, arg3]) { originalConsoleError.apply([message], thisArg: self); // Ignore unrelated warnings