test262/test/intl402/Temporal/Now/plainDate/calendar-string.js
2022-01-24 13:36:43 -05:00

13 lines
372 B
JavaScript

// Copyright (C) 2022 Igalia, S.L. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-temporal.now.plaindate
description: String calendar argument
features: [Temporal]
---*/
const date = Temporal.Now.plainDate("gregory");
assert(date instanceof Temporal.PlainDate);
assert.sameValue(date.calendar.id, "gregory");