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
Notes: sideshowbarker 2024-07-18 08:33:08 +09:00

View File

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