Skip to content

Commit

Permalink
[FIX] web: overspecified test
Browse files Browse the repository at this point in the history
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
  • Loading branch information
xmo-odoo authored and zel-odoo committed May 12, 2021
1 parent dd25753 commit 61acc73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/web/static/tests/core/util_tests.js
Expand Up @@ -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),
Expand Down

0 comments on commit 61acc73

Please sign in to comment.