mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 05: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:
parent
1927dbf025
commit
a8ba2f4b21
109 changed files with 109 additions and 109 deletions
|
@ -6,7 +6,7 @@ describe("correct behavior", () => {
|
|||
});
|
||||
});
|
||||
|
||||
test("errors", () => {
|
||||
describe("errors", () => {
|
||||
test("this value must be a Temporal.PlainDateTime object", () => {
|
||||
expect(() => {
|
||||
Reflect.get(Temporal.PlainDateTime.prototype, "calendar", "foo");
|
||||
|
|
|
@ -5,7 +5,7 @@ describe("correct behavior", () => {
|
|||
});
|
||||
});
|
||||
|
||||
test("errors", () => {
|
||||
describe("errors", () => {
|
||||
test("this value must be a Temporal.PlainDateTime object", () => {
|
||||
expect(() => {
|
||||
Reflect.get(Temporal.PlainDateTime.prototype, "day", "foo");
|
||||
|
|
|
@ -5,7 +5,7 @@ describe("correct behavior", () => {
|
|||
});
|
||||
});
|
||||
|
||||
test("errors", () => {
|
||||
describe("errors", () => {
|
||||
test("this value must be a Temporal.PlainDateTime object", () => {
|
||||
expect(() => {
|
||||
Reflect.get(Temporal.PlainDateTime.prototype, "dayOfWeek", "foo");
|
||||
|
|
|
@ -5,7 +5,7 @@ describe("correct behavior", () => {
|
|||
});
|
||||
});
|
||||
|
||||
test("errors", () => {
|
||||
describe("errors", () => {
|
||||
test("this value must be a Temporal.PlainDateTime object", () => {
|
||||
expect(() => {
|
||||
Reflect.get(Temporal.PlainDateTime.prototype, "dayOfYear", "foo");
|
||||
|
|
|
@ -5,7 +5,7 @@ describe("correct behavior", () => {
|
|||
});
|
||||
});
|
||||
|
||||
test("errors", () => {
|
||||
describe("errors", () => {
|
||||
test("this value must be a Temporal.PlainDateTime object", () => {
|
||||
expect(() => {
|
||||
Reflect.get(Temporal.PlainDateTime.prototype, "daysInMonth", "foo");
|
||||
|
|
|
@ -5,7 +5,7 @@ describe("correct behavior", () => {
|
|||
});
|
||||
});
|
||||
|
||||
test("errors", () => {
|
||||
describe("errors", () => {
|
||||
test("this value must be a Temporal.PlainDateTime object", () => {
|
||||
expect(() => {
|
||||
Reflect.get(Temporal.PlainDateTime.prototype, "daysInWeek", "foo");
|
||||
|
|
|
@ -5,7 +5,7 @@ describe("correct behavior", () => {
|
|||
});
|
||||
});
|
||||
|
||||
test("errors", () => {
|
||||
describe("errors", () => {
|
||||
test("this value must be a Temporal.PlainDateTime object", () => {
|
||||
expect(() => {
|
||||
Reflect.get(Temporal.PlainDateTime.prototype, "daysInYear", "foo");
|
||||
|
|
|
@ -5,7 +5,7 @@ describe("correct behavior", () => {
|
|||
});
|
||||
});
|
||||
|
||||
test("errors", () => {
|
||||
describe("errors", () => {
|
||||
test("this value must be a Temporal.PlainDateTime object", () => {
|
||||
expect(() => {
|
||||
Reflect.get(Temporal.PlainDateTime.prototype, "hour", "foo");
|
||||
|
|
|
@ -5,7 +5,7 @@ describe("correct behavior", () => {
|
|||
});
|
||||
});
|
||||
|
||||
test("errors", () => {
|
||||
describe("errors", () => {
|
||||
test("this value must be a Temporal.PlainDateTime object", () => {
|
||||
expect(() => {
|
||||
Reflect.get(Temporal.PlainDateTime.prototype, "inLeapYear", "foo");
|
||||
|
|
|
@ -5,7 +5,7 @@ describe("correct behavior", () => {
|
|||
});
|
||||
});
|
||||
|
||||
test("errors", () => {
|
||||
describe("errors", () => {
|
||||
test("this value must be a Temporal.PlainDateTime object", () => {
|
||||
expect(() => {
|
||||
Reflect.get(Temporal.PlainDateTime.prototype, "microsecond", "foo");
|
||||
|
|
|
@ -5,7 +5,7 @@ describe("correct behavior", () => {
|
|||
});
|
||||
});
|
||||
|
||||
test("errors", () => {
|
||||
describe("errors", () => {
|
||||
test("this value must be a Temporal.PlainDateTime object", () => {
|
||||
expect(() => {
|
||||
Reflect.get(Temporal.PlainDateTime.prototype, "millisecond", "foo");
|
||||
|
|
|
@ -5,7 +5,7 @@ describe("correct behavior", () => {
|
|||
});
|
||||
});
|
||||
|
||||
test("errors", () => {
|
||||
describe("errors", () => {
|
||||
test("this value must be a Temporal.PlainDateTime object", () => {
|
||||
expect(() => {
|
||||
Reflect.get(Temporal.PlainDateTime.prototype, "minute", "foo");
|
||||
|
|
|
@ -5,7 +5,7 @@ describe("correct behavior", () => {
|
|||
});
|
||||
});
|
||||
|
||||
test("errors", () => {
|
||||
describe("errors", () => {
|
||||
test("this value must be a Temporal.PlainDateTime object", () => {
|
||||
expect(() => {
|
||||
Reflect.get(Temporal.PlainDateTime.prototype, "month", "foo");
|
||||
|
|
|
@ -5,7 +5,7 @@ describe("correct behavior", () => {
|
|||
});
|
||||
});
|
||||
|
||||
test("errors", () => {
|
||||
describe("errors", () => {
|
||||
test("this value must be a Temporal.PlainDateTime object", () => {
|
||||
expect(() => {
|
||||
Reflect.get(Temporal.PlainDateTime.prototype, "monthCode", "foo");
|
||||
|
|
|
@ -5,7 +5,7 @@ describe("correct behavior", () => {
|
|||
});
|
||||
});
|
||||
|
||||
test("errors", () => {
|
||||
describe("errors", () => {
|
||||
test("this value must be a Temporal.PlainDateTime object", () => {
|
||||
expect(() => {
|
||||
Reflect.get(Temporal.PlainDateTime.prototype, "monthsInYear", "foo");
|
||||
|
|
|
@ -5,7 +5,7 @@ describe("correct behavior", () => {
|
|||
});
|
||||
});
|
||||
|
||||
test("errors", () => {
|
||||
describe("errors", () => {
|
||||
test("this value must be a Temporal.PlainDateTime object", () => {
|
||||
expect(() => {
|
||||
Reflect.get(Temporal.PlainDateTime.prototype, "nanosecond", "foo");
|
||||
|
|
|
@ -5,7 +5,7 @@ describe("correct behavior", () => {
|
|||
});
|
||||
});
|
||||
|
||||
test("errors", () => {
|
||||
describe("errors", () => {
|
||||
test("this value must be a Temporal.PlainDateTime object", () => {
|
||||
expect(() => {
|
||||
Reflect.get(Temporal.PlainDateTime.prototype, "second", "foo");
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
test("errors", () => {
|
||||
describe("errors", () => {
|
||||
test("throws TypeError", () => {
|
||||
expect(() => {
|
||||
new Temporal.PlainDateTime(2021, 7, 22, 19, 54, 38).valueOf();
|
||||
|
|
|
@ -5,7 +5,7 @@ describe("correct behavior", () => {
|
|||
});
|
||||
});
|
||||
|
||||
test("errors", () => {
|
||||
describe("errors", () => {
|
||||
test("this value must be a Temporal.PlainDateTime object", () => {
|
||||
expect(() => {
|
||||
Reflect.get(Temporal.PlainDateTime.prototype, "weekOfYear", "foo");
|
||||
|
|
|
@ -5,7 +5,7 @@ describe("correct behavior", () => {
|
|||
});
|
||||
});
|
||||
|
||||
test("errors", () => {
|
||||
describe("errors", () => {
|
||||
test("this value must be a Temporal.PlainDateTime object", () => {
|
||||
expect(() => {
|
||||
Reflect.get(Temporal.PlainDateTime.prototype, "year", "foo");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue