1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 14:27:35 +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

@ -44,7 +44,7 @@ describe("correct behavior", () => {
});
});
test("errors", () => {
describe("errors", () => {
test("this value must be a Temporal.Duration object", () => {
expect(() => {
Temporal.Duration.prototype.abs.call("foo");

View file

@ -8,7 +8,7 @@ describe("correct behavior", () => {
});
});
test("errors", () => {
describe("errors", () => {
test("this value must be a Temporal.Duration object", () => {
expect(() => {
Reflect.get(Temporal.Duration.prototype, "blank", "foo");

View file

@ -5,7 +5,7 @@ describe("correct behavior", () => {
});
});
test("errors", () => {
describe("errors", () => {
test("this value must be a Temporal.Duration object", () => {
expect(() => {
Reflect.get(Temporal.Duration.prototype, "days", "foo");

View file

@ -5,7 +5,7 @@ describe("correct behavior", () => {
});
});
test("errors", () => {
describe("errors", () => {
test("this value must be a Temporal.Duration object", () => {
expect(() => {
Reflect.get(Temporal.Duration.prototype, "hours", "foo");

View file

@ -5,7 +5,7 @@ describe("correct behavior", () => {
});
});
test("errors", () => {
describe("errors", () => {
test("this value must be a Temporal.Duration object", () => {
expect(() => {
Reflect.get(Temporal.Duration.prototype, "microseconds", "foo");

View file

@ -5,7 +5,7 @@ describe("correct behavior", () => {
});
});
test("errors", () => {
describe("errors", () => {
test("this value must be a Temporal.Duration object", () => {
expect(() => {
Reflect.get(Temporal.Duration.prototype, "milliseconds", "foo");

View file

@ -5,7 +5,7 @@ describe("correct behavior", () => {
});
});
test("errors", () => {
describe("errors", () => {
test("this value must be a Temporal.Duration object", () => {
expect(() => {
Reflect.get(Temporal.Duration.prototype, "minutes", "foo");

View file

@ -5,7 +5,7 @@ describe("correct behavior", () => {
});
});
test("errors", () => {
describe("errors", () => {
test("this value must be a Temporal.Duration object", () => {
expect(() => {
Reflect.get(Temporal.Duration.prototype, "months", "foo");

View file

@ -5,7 +5,7 @@ describe("correct behavior", () => {
});
});
test("errors", () => {
describe("errors", () => {
test("this value must be a Temporal.Duration object", () => {
expect(() => {
Reflect.get(Temporal.Duration.prototype, "nanoseconds", "foo");

View file

@ -33,7 +33,7 @@ describe("correct behavior", () => {
});
});
test("errors", () => {
describe("errors", () => {
test("this value must be a Temporal.Duration object", () => {
expect(() => {
Temporal.Duration.prototype.negated.call("foo");

View file

@ -5,7 +5,7 @@ describe("correct behavior", () => {
});
});
test("errors", () => {
describe("errors", () => {
test("this value must be a Temporal.Duration object", () => {
expect(() => {
Reflect.get(Temporal.Duration.prototype, "seconds", "foo");

View file

@ -8,7 +8,7 @@ describe("correct behavior", () => {
});
});
test("errors", () => {
describe("errors", () => {
test("this value must be a Temporal.Duration object", () => {
expect(() => {
Reflect.get(Temporal.Duration.prototype, "sign", "foo");

View file

@ -1,4 +1,4 @@
test("errors", () => {
describe("errors", () => {
test("throws TypeError", () => {
expect(() => {
new Temporal.Duration().valueOf();

View file

@ -5,7 +5,7 @@ describe("correct behavior", () => {
});
});
test("errors", () => {
describe("errors", () => {
test("this value must be a Temporal.Duration object", () => {
expect(() => {
Reflect.get(Temporal.Duration.prototype, "weeks", "foo");

View file

@ -38,7 +38,7 @@ describe("correct behavior", () => {
});
});
test("errors", () => {
describe("errors", () => {
test("this value must be a Temporal.Duration object", () => {
expect(() => {
Temporal.Duration.prototype.with.call("foo");

View file

@ -5,7 +5,7 @@ describe("correct behavior", () => {
});
});
test("errors", () => {
describe("errors", () => {
test("this value must be a Temporal.Duration object", () => {
expect(() => {
Reflect.get(Temporal.Duration.prototype, "years", "foo");