Skip to content
Snippets Groups Projects
Commit bba2429c authored by Ujjwal Sharma's avatar Ujjwal Sharma Committed by Rick Waldron
Browse files

intl: increase coverage for NumberFormat constructor

Increase coverage for the Intl.NumberFormat constructor by adding tests
checking if appropriate default values are used.
parent 5de1831c
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-initializenumberformat
description: >
Tests that the constructor for Intl.NumberFormat uses appropriate default
values for its arguments (locales and options).
---*/
const actual = new Intl.NumberFormat();
const expected = new Intl.NumberFormat([], { __proto__: null });
assert.sameValue(actual.resolvedOptions(), expected.resolvedOptions());
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