|
@@ -266,6 +266,10 @@ describe("normal behavior", () => {
|
|
}).not.toThrow();
|
|
}).not.toThrow();
|
|
});
|
|
});
|
|
["numeric", "2-digit"].forEach(seconds => {
|
|
["numeric", "2-digit"].forEach(seconds => {
|
|
|
|
+ expect(() => {
|
|
|
|
+ new Intl.DurationFormat("en", { hours: seconds });
|
|
|
|
+ }).not.toThrow();
|
|
|
|
+
|
|
expect(() => {
|
|
expect(() => {
|
|
new Intl.DurationFormat("en", { style: "digital", hours: seconds });
|
|
new Intl.DurationFormat("en", { style: "digital", hours: seconds });
|
|
}).not.toThrow();
|
|
}).not.toThrow();
|
|
@@ -287,6 +291,10 @@ describe("normal behavior", () => {
|
|
}).not.toThrow();
|
|
}).not.toThrow();
|
|
});
|
|
});
|
|
["numeric", "2-digit"].forEach(seconds => {
|
|
["numeric", "2-digit"].forEach(seconds => {
|
|
|
|
+ expect(() => {
|
|
|
|
+ new Intl.DurationFormat("en", { minutes: seconds });
|
|
|
|
+ }).not.toThrow();
|
|
|
|
+
|
|
expect(() => {
|
|
expect(() => {
|
|
new Intl.DurationFormat("en", { style: "digital", minutes: seconds });
|
|
new Intl.DurationFormat("en", { style: "digital", minutes: seconds });
|
|
}).not.toThrow();
|
|
}).not.toThrow();
|
|
@@ -308,6 +316,10 @@ describe("normal behavior", () => {
|
|
}).not.toThrow();
|
|
}).not.toThrow();
|
|
});
|
|
});
|
|
["numeric", "2-digit"].forEach(seconds => {
|
|
["numeric", "2-digit"].forEach(seconds => {
|
|
|
|
+ expect(() => {
|
|
|
|
+ new Intl.DurationFormat("en", { seconds: seconds });
|
|
|
|
+ }).not.toThrow();
|
|
|
|
+
|
|
expect(() => {
|
|
expect(() => {
|
|
new Intl.DurationFormat("en", { style: "digital", seconds: seconds });
|
|
new Intl.DurationFormat("en", { style: "digital", seconds: seconds });
|
|
}).not.toThrow();
|
|
}).not.toThrow();
|
|
@@ -328,6 +340,11 @@ describe("normal behavior", () => {
|
|
new Intl.DurationFormat("en", { milliseconds: milliseconds });
|
|
new Intl.DurationFormat("en", { milliseconds: milliseconds });
|
|
}).not.toThrow();
|
|
}).not.toThrow();
|
|
});
|
|
});
|
|
|
|
+
|
|
|
|
+ expect(() => {
|
|
|
|
+ new Intl.DurationFormat("en", { milliseconds: "numeric" });
|
|
|
|
+ }).not.toThrow();
|
|
|
|
+
|
|
expect(() => {
|
|
expect(() => {
|
|
new Intl.DurationFormat("en", { style: "digital", milliseconds: "numeric" });
|
|
new Intl.DurationFormat("en", { style: "digital", milliseconds: "numeric" });
|
|
}).not.toThrow();
|
|
}).not.toThrow();
|
|
@@ -347,6 +364,11 @@ describe("normal behavior", () => {
|
|
new Intl.DurationFormat("en", { microseconds: microseconds });
|
|
new Intl.DurationFormat("en", { microseconds: microseconds });
|
|
}).not.toThrow();
|
|
}).not.toThrow();
|
|
});
|
|
});
|
|
|
|
+
|
|
|
|
+ expect(() => {
|
|
|
|
+ new Intl.DurationFormat("en", { microseconds: "numeric" });
|
|
|
|
+ }).not.toThrow();
|
|
|
|
+
|
|
expect(() => {
|
|
expect(() => {
|
|
new Intl.DurationFormat("en", { style: "digital", microseconds: "numeric" });
|
|
new Intl.DurationFormat("en", { style: "digital", microseconds: "numeric" });
|
|
}).not.toThrow();
|
|
}).not.toThrow();
|
|
@@ -366,6 +388,11 @@ describe("normal behavior", () => {
|
|
new Intl.DurationFormat("en", { nanoseconds: nanoseconds });
|
|
new Intl.DurationFormat("en", { nanoseconds: nanoseconds });
|
|
}).not.toThrow();
|
|
}).not.toThrow();
|
|
});
|
|
});
|
|
|
|
+
|
|
|
|
+ expect(() => {
|
|
|
|
+ new Intl.DurationFormat("en", { nanoseconds: "numeric" });
|
|
|
|
+ }).not.toThrow();
|
|
|
|
+
|
|
expect(() => {
|
|
expect(() => {
|
|
new Intl.DurationFormat("en", { style: "digital", nanoseconds: "numeric" });
|
|
new Intl.DurationFormat("en", { style: "digital", nanoseconds: "numeric" });
|
|
}).not.toThrow();
|
|
}).not.toThrow();
|