mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 06:57:45 +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
|
@ -24,7 +24,7 @@ describe("correct behavior", () => {
|
|||
});
|
||||
});
|
||||
|
||||
test("errors", () => {
|
||||
describe("errors", () => {
|
||||
test("argument must be coercible to BigInt", () => {
|
||||
expect(() => {
|
||||
Temporal.Instant.fromEpochMicroseconds(123);
|
||||
|
|
|
@ -24,7 +24,7 @@ describe("correct behavior", () => {
|
|||
});
|
||||
});
|
||||
|
||||
test("errors", () => {
|
||||
describe("errors", () => {
|
||||
test("argument must be coercible to BigInt", () => {
|
||||
expect(() => {
|
||||
Temporal.Instant.fromEpochMilliseconds(1.23);
|
||||
|
|
|
@ -24,7 +24,7 @@ describe("correct behavior", () => {
|
|||
});
|
||||
});
|
||||
|
||||
test("errors", () => {
|
||||
describe("errors", () => {
|
||||
test("argument must be coercible to BigInt", () => {
|
||||
expect(() => {
|
||||
Temporal.Instant.fromEpochNanoseconds(123);
|
||||
|
|
|
@ -20,7 +20,7 @@ describe("correct behavior", () => {
|
|||
});
|
||||
});
|
||||
|
||||
test("errors", () => {
|
||||
describe("errors", () => {
|
||||
test("argument must be coercible to BigInt", () => {
|
||||
expect(() => {
|
||||
Temporal.Instant.fromEpochSeconds(1.23);
|
||||
|
|
|
@ -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");
|
||||
|
|
|
@ -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");
|
||||
|
|
|
@ -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");
|
||||
|
|
|
@ -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");
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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", {});
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
test("errors", () => {
|
||||
describe("errors", () => {
|
||||
test("throws TypeError", () => {
|
||||
expect(() => {
|
||||
new Temporal.Instant(0n).valueOf();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue