From fe8204a48de881b64b59e6178ad0eeb02fd3c188 Mon Sep 17 00:00:00 2001 From: Xavier Morel Date: Tue, 20 Apr 2021 14:10:31 +0000 Subject: [PATCH] [FIX] web: overspecified test Testing what's literally just a native feature seems odd, but in this case it's also way over-specified: Firefox's error message for the conversion of a symbol to a number is can't convert symbol to number --- addons/web/static/tests/core/util_tests.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/web/static/tests/core/util_tests.js b/addons/web/static/tests/core/util_tests.js index 6ebed59544789..1b19c3cb533e2 100644 --- a/addons/web/static/tests/core/util_tests.js +++ b/addons/web/static/tests/core/util_tests.js @@ -231,7 +231,7 @@ QUnit.module('core', {}, function () { ); assert.throws( () => sortBy([Symbol('b'), Symbol('a')]), - new TypeError(`Cannot convert a Symbol value to a number`) + TypeError ); assert.throws( () => sortBy(ints, true),