test262/test/built-ins/Temporal/TimeZone/from/timezone-case-insensitive.js

13 lines
401 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.timezone.from
description: Time zone names are case insensitive
features: [Temporal]
---*/
const timeZone = 'UtC';
const result = Temporal.TimeZone.from(timeZone);
assert.sameValue(result.id, 'UTC', `Time zone created from string "${timeZone}"`);