mirror of
https://github.com/tc39/test262.git
synced 2025-07-13 09:04:36 +02:00
Add a basic test for PlainDateTime#toPlainTime.
This commit is contained in:
parent
615a2eb9a1
commit
1fe9bd3951
12
test/built-ins/Temporal/PlainDateTime/prototype/toPlainTime/basic.js
vendored
Normal file
12
test/built-ins/Temporal/PlainDateTime/prototype/toPlainTime/basic.js
vendored
Normal 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);
|
Loading…
x
Reference in New Issue
Block a user