summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimothy Flynn <trflynn89@pm.me>2022-01-25 12:32:14 -0500
committerLinus Groh <mail@linusgroh.de>2022-01-25 19:02:59 +0000
commitb50880f28c6498c8458e60e2e6d2df75be44af86 (patch)
treec22f509ad2930239cf66972f32eec5c9ca0b1881
parentcf166c1d93509b30d3b55c417c8e2db9b50eec5a (diff)
downloadserenity-b50880f28c6498c8458e60e2e6d2df75be44af86.zip
LibJS: Fix errors in Intl.DateTimeFormat.prototype.resolvedOptions tests
Noticed these while implementing this prototype for RelativeTimeFormat.
-rw-r--r--Userland/Libraries/LibJS/Tests/builtins/Intl/DateTimeFormat/DateTimeFormat.prototype.resolvedOptions.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/Userland/Libraries/LibJS/Tests/builtins/Intl/DateTimeFormat/DateTimeFormat.prototype.resolvedOptions.js b/Userland/Libraries/LibJS/Tests/builtins/Intl/DateTimeFormat/DateTimeFormat.prototype.resolvedOptions.js
index 01c6640bf5..0546b115bd 100644
--- a/Userland/Libraries/LibJS/Tests/builtins/Intl/DateTimeFormat/DateTimeFormat.prototype.resolvedOptions.js
+++ b/Userland/Libraries/LibJS/Tests/builtins/Intl/DateTimeFormat/DateTimeFormat.prototype.resolvedOptions.js
@@ -4,13 +4,13 @@ describe("correct behavior", () => {
});
test("locale only contains relevant extension keys", () => {
- const en1 = Intl.NumberFormat("en-u-ca-islamicc");
+ const en1 = Intl.DateTimeFormat("en-u-co-case");
expect(en1.resolvedOptions().locale).toBe("en");
- const en2 = Intl.NumberFormat("en-u-nu-latn");
+ const en2 = Intl.DateTimeFormat("en-u-nu-latn");
expect(en2.resolvedOptions().locale).toBe("en-u-nu-latn");
- const en3 = Intl.NumberFormat("en-u-ca-islamicc-nu-latn");
+ const en3 = Intl.DateTimeFormat("en-u-co-case-nu-latn");
expect(en3.resolvedOptions().locale).toBe("en-u-nu-latn");
});
@@ -85,7 +85,7 @@ describe("correct behavior", () => {
});
});
- test("style", () => {
+ test("timeZone", () => {
const en = new Intl.DateTimeFormat("en", { timeZone: "EST" });
expect(en.resolvedOptions().timeZone).toBe("EST");