Skip to content

Commit

Permalink
Temporal: Add a test for PlainTime#calendar.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ms2ger authored and ptomato committed May 19, 2022
1 parent b8ab706 commit a1a5c91
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions test/built-ins/Temporal/PlainTime/prototype/calendar/basic.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// Copyright (C) 2022 Igalia, S.L. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.

/*---
esid: sec-get-temporal.plaintime.prototype.calendar
description: calendar returns the iso8601 calendar.
features: [Temporal]
---*/

const pt = new Temporal.PlainTime();
assert(pt.calendar instanceof Temporal.Calendar, "getter returns Calendar object");
assert.sameValue(pt.calendar.toString(), "iso8601", "getter returns iso8601 calendar");
assert.sameValue(pt.calendar, pt.calendar, "getter returns the same object");

0 comments on commit a1a5c91

Please sign in to comment.