Skip to content
Snippets Groups Projects
Unverified Commit 9d2ae66a authored by Rick Waldron's avatar Rick Waldron Committed by GitHub
Browse files

Merge pull request #1936 from ryzokuken/dtf-constructor-options-default

intl: increase coverage for DateTimeFormat
parents 0475c127 46515dcb
No related branches found
No related tags found
No related merge requests found
// Copyright (C) 2018 Ujjwal Sharma. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-initializedatetimeformat
description: >
Tests that the constructor for Intl.DateTimeFormat uses appropriate default
values for its arguments (locales and options).
---*/
const actual = new Intl.DateTimeFormat().resolvedOptions();
const expected = new Intl.DateTimeFormat(
[],
Object.create(null)
).resolvedOptions();
assert.sameValue(actual.locale, expected.locale);
assert.sameValue(actual.calendar, expected.calendar);
assert.sameValue(actual.day, expected.day);
assert.sameValue(actual.month, expected.month);
assert.sameValue(actual.year, expected.year);
assert.sameValue(actual.numberingSystem, expected.numberingSystem);
assert.sameValue(actual.timeZone, expected.timeZone);
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment