1
0
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:
Paulus Schoutsen
2019-04-30 12:16:41 -07:00
committed by GitHub
parent ca0ded8587
commit 652cd10483
5 changed files with 11 additions and 29 deletions

View File

@@ -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");
});
});

View File

@@ -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");
});
});

View File

@@ -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");
});
});