mirror of
https://github.com/home-assistant/frontend.git
synced 2025-12-24 20:55:49 +00:00
Fix common tests (#14485)
This commit is contained in:
@@ -108,7 +108,7 @@ describe("computeStateDisplay", () => {
|
||||
};
|
||||
assert.strictEqual(
|
||||
computeStateDisplay(localize, stateObj, localeData),
|
||||
"1,234.5 m"
|
||||
"1,234.5"
|
||||
);
|
||||
});
|
||||
|
||||
@@ -173,7 +173,7 @@ describe("computeStateDisplay", () => {
|
||||
describe("Localizes input_datetime with full date time", () => {
|
||||
const stateObj: any = {
|
||||
entity_id: "input_datetime.test",
|
||||
state: "123",
|
||||
state: "2017-11-18 23:12:00",
|
||||
attributes: {
|
||||
has_date: true,
|
||||
has_time: true,
|
||||
@@ -203,7 +203,7 @@ describe("computeStateDisplay", () => {
|
||||
it("Localizes input_datetime with date", () => {
|
||||
const stateObj: any = {
|
||||
entity_id: "input_datetime.test",
|
||||
state: "123",
|
||||
state: "2017-11-18",
|
||||
attributes: {
|
||||
has_date: true,
|
||||
has_time: false,
|
||||
@@ -224,7 +224,7 @@ describe("computeStateDisplay", () => {
|
||||
describe("Localizes input_datetime with time", () => {
|
||||
const stateObj: any = {
|
||||
entity_id: "input_datetime.test",
|
||||
state: "123",
|
||||
state: "23:12:00",
|
||||
attributes: {
|
||||
has_date: false,
|
||||
has_time: true,
|
||||
|
||||
Reference in New Issue
Block a user