Add a basic test for PlainDateTime#toPlainTime.

This commit is contained in:
Ms2ger 2022-02-18 11:53:22 +01:00 committed by Rick Waldron
parent 615a2eb9a1
commit 1fe9bd3951
1 changed files with 12 additions and 0 deletions

View File

@ -0,0 +1,12 @@
// 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.plaindatetime.prototype.toplaintime
description: Basic usage
includes: [temporalHelpers.js]
features: [Temporal]
---*/
const plainDateTime = Temporal.PlainDateTime.from("2020-02-12T11:42:56.987654321+01:00[Europe/Amsterdam]");
TemporalHelpers.assertPlainTime(plainDateTime.toPlainTime(), 11, 42, 56, 987, 654, 321);