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

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