1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 12:37:44 +00:00

LibJS/Tests: Fix this value error test description in a PlainDate test

This commit is contained in:
Linus Groh 2021-07-22 20:05:16 +01:00
parent 2c46a0fa6c
commit 38645347a7

View file

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