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:
@@ -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"
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user