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

@ -6,7 +6,7 @@ describe("correct behavior", () => {
});
});
test("errors", () => {
describe("errors", () => {
test("this value must be a Date object", () => {
expect(() => {
Date.prototype.toTemporalInstant.call(123);

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(

View file

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

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");

View file

@ -24,7 +24,7 @@ describe("correct behavior", () => {
});
});
test("errors", () => {
describe("errors", () => {
test("argument must be coercible to BigInt", () => {
expect(() => {
Temporal.Instant.fromEpochMicroseconds(123);

View file

@ -24,7 +24,7 @@ describe("correct behavior", () => {
});
});
test("errors", () => {
describe("errors", () => {
test("argument must be coercible to BigInt", () => {
expect(() => {
Temporal.Instant.fromEpochMilliseconds(1.23);

View file

@ -24,7 +24,7 @@ describe("correct behavior", () => {
});
});
test("errors", () => {
describe("errors", () => {
test("argument must be coercible to BigInt", () => {
expect(() => {
Temporal.Instant.fromEpochNanoseconds(123);

View file

@ -20,7 +20,7 @@ describe("correct behavior", () => {
});
});
test("errors", () => {
describe("errors", () => {
test("argument must be coercible to BigInt", () => {
expect(() => {
Temporal.Instant.fromEpochSeconds(1.23);

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

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");

View file

@ -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");

View file

@ -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");

View file

@ -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");

View file

@ -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");

View file

@ -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");

View file

@ -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");

View file

@ -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");

View file

@ -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");

View file

@ -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");

View file

@ -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");

View file

@ -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");

View file

@ -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");

View file

@ -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");

View file

@ -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");

View file

@ -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");

View file

@ -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");

View file

@ -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");

View file

@ -1,4 +1,4 @@
test("errors", () => {
describe("errors", () => {
test("throws TypeError", () => {
expect(() => {
new Temporal.PlainDateTime(2021, 7, 22, 19, 54, 38).valueOf();

View file

@ -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");

View file

@ -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");

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

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");

Some files were not shown because too many files have changed in this diff Show more