1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 17:17:45 +00:00

LibJS/Tests: Fix bad copy and paste that crept into a lot of tests

The top-level function should have been `describe()``, but instead it's
been nested `test()`s.
This commit is contained in:
Linus Groh 2021-08-07 00:53:14 +01:00
parent 1927dbf025
commit a8ba2f4b21
109 changed files with 109 additions and 109 deletions

View file

@ -26,7 +26,7 @@ describe("correct behavior", () => {
});
});
test("errors", () => {
describe("errors", () => {
test("must be called with numeric |this|", () => {
[true, [], {}, Symbol("foo"), "bar", 1n].forEach(value => {
expect(() => Number.prototype.toFixed.call(value)).toThrowWithMessage(

View file

@ -72,7 +72,7 @@ describe("correct behavior", () => {
});
});
test("errors", () => {
describe("errors", () => {
test("must be called with numeric |this|", () => {
[true, [], {}, Symbol("foo"), "bar", 1n].forEach(value => {
expect(() => Number.prototype.toString.call(value)).toThrowWithMessage(

View file

@ -9,7 +9,7 @@ describe("correct behavior", () => {
});
});
test("errors", () => {
describe("errors", () => {
test("must be called with numeric |this|", () => {
[true, [], {}, Symbol("foo"), "bar", 1n].forEach(value => {
expect(() => Number.prototype.valueOf.call(value)).toThrowWithMessage(