mirror of
https://github.com/home-assistant/frontend.git
synced 2025-12-19 18:28:42 +00:00
Use Node 12 (#3141)
* Use Node 12 * Remove tests that don't work in Node
This commit is contained in:
@@ -8,10 +8,4 @@ describe("formatDate", () => {
|
||||
it("Formats English dates", () => {
|
||||
assert.strictEqual(formatDate(dateObj, "en"), "November 18, 2017");
|
||||
});
|
||||
|
||||
// Node only contains intl support for english formats. This test at least ensures
|
||||
// the fallback to a different locale
|
||||
it("Formats other dates", () => {
|
||||
assert.strictEqual(formatDate(dateObj, "fr"), "2017 M11 18");
|
||||
});
|
||||
});
|
||||
|
||||
@@ -11,10 +11,4 @@ describe("formatDateTime", () => {
|
||||
"November 18, 2017, 11:12 AM"
|
||||
);
|
||||
});
|
||||
|
||||
// Node only contains intl support for english formats. This test at least ensures
|
||||
// the fallback to a different locale
|
||||
it("Formats other date times", () => {
|
||||
assert.strictEqual(formatDateTime(dateObj, "fr"), "2017 M11 18 11:12");
|
||||
});
|
||||
});
|
||||
|
||||
@@ -8,10 +8,4 @@ describe("formatTime", () => {
|
||||
it("Formats English times", () => {
|
||||
assert.strictEqual(formatTime(dateObj, "en"), "11:12 AM");
|
||||
});
|
||||
|
||||
// Node only contains intl support for english formats. This test at least ensures
|
||||
// the fallback to a different locale
|
||||
it("Formats other times", () => {
|
||||
assert.strictEqual(formatTime(dateObj, "fr"), "11:12");
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user