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

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -40,7 +40,7 @@ describe("normal behavior", () => {
});
});
test("errors", () => {
describe("errors", () => {
test("this value must be a Temporal.ZonedDateTime object", () => {
expect(() => {
Temporal.ZonedDateTime.prototype.getISOFields.call("foo");

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -1,4 +1,4 @@
test("errors", () => {
describe("errors", () => {
test("throws TypeError", () => {
const timeZone = new Temporal.TimeZone("UTC");
expect(() => {

View file

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

View file

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