1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-28 03:47:34 +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

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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