mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 21:27: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
|
@ -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");
|
||||
|
|
|
@ -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");
|
||||
|
|
|
@ -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");
|
||||
|
|
|
@ -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");
|
||||
|
|
|
@ -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");
|
||||
|
|
|
@ -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");
|
||||
|
|
|
@ -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");
|
||||
|
|
|
@ -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");
|
||||
|
|
|
@ -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");
|
||||
|
|
|
@ -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");
|
||||
|
|
|
@ -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");
|
||||
|
|
|
@ -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");
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
test("errors", () => {
|
||||
describe("errors", () => {
|
||||
test("throws TypeError", () => {
|
||||
expect(() => {
|
||||
new Temporal.Duration().valueOf();
|
||||
|
|
|
@ -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");
|
||||
|
|
|
@ -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");
|
||||
|
|
|
@ -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");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue