1
0
mirror of https://github.com/home-assistant/frontend.git synced 2026-04-24 02:39:46 +01:00

Add first weekday option in profile (#13991)

This commit is contained in:
Paul Bottein
2022-10-10 16:58:27 +02:00
committed by GitHub
parent 4deee46864
commit 907466d060
24 changed files with 253 additions and 14 deletions

View File

@@ -1,7 +1,11 @@
import { assert } from "chai";
import { formatDate } from "../../../src/common/datetime/format_date";
import { NumberFormat, TimeFormat } from "../../../src/data/translation";
import {
NumberFormat,
TimeFormat,
FirstWeekday,
} from "../../../src/data/translation";
describe("formatDate", () => {
const dateObj = new Date(2017, 10, 18, 11, 12, 13, 1400);
@@ -12,6 +16,7 @@ describe("formatDate", () => {
language: "en",
number_format: NumberFormat.language,
time_format: TimeFormat.language,
first_weekday: FirstWeekday.language,
}),
"November 18, 2017"
);