mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 17:17: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
|
@ -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(
|
||||
|
|
|
@ -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(
|
||||
|
|
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue