From 518563fddd5d26b56b635767ea550df236c7df5f Mon Sep 17 00:00:00 2001 From: Ari Date: Tue, 5 Jul 2022 22:19:43 -0400 Subject: [PATCH] fixed tests --- webapp/src/components/AutomationList/TagDB.ts | 1 - webapp/src/components/DAGFlow/DAGFlowUpdater.ts | 1 - webapp/src/components/Inputs/InputArea.tsx | 1 - webapp/src/components/ServiceEditor/ServiceEditorField.tsx | 1 - webapp/src/utils/formatting.test.ts | 6 +++--- 5 files changed, 3 insertions(+), 7 deletions(-) diff --git a/webapp/src/components/AutomationList/TagDB.ts b/webapp/src/components/AutomationList/TagDB.ts index 13b2a66..ccd96b0 100644 --- a/webapp/src/components/AutomationList/TagDB.ts +++ b/webapp/src/components/AutomationList/TagDB.ts @@ -15,7 +15,6 @@ export const makeTagDB = (automations: AutomationData[]) => { const allTagNames = Object.keys(allTags); return { getTagNames(myTags: string[]): string[] { - console.log(myTags, allTagNames); return allTagNames.filter((n) => !myTags.includes(n)).sort(); }, getTagValues(tagName: string): string[] { diff --git a/webapp/src/components/DAGFlow/DAGFlowUpdater.ts b/webapp/src/components/DAGFlow/DAGFlowUpdater.ts index 8ce6e7b..b7a6d3f 100644 --- a/webapp/src/components/DAGFlow/DAGFlowUpdater.ts +++ b/webapp/src/components/DAGFlow/DAGFlowUpdater.ts @@ -41,7 +41,6 @@ export const makeDagFlowUpdate = (args: DagFlowUpdateArgs) => { conditions: [], }, update: (n) => { - console.log({ afterIndex, n }); if (afterIndex !== null) { args.onSequenceUpdate([ ...args.sequence.slice(0, afterIndex), diff --git a/webapp/src/components/Inputs/InputArea.tsx b/webapp/src/components/Inputs/InputArea.tsx index 49d6357..2afc053 100644 --- a/webapp/src/components/Inputs/InputArea.tsx +++ b/webapp/src/components/Inputs/InputArea.tsx @@ -13,7 +13,6 @@ export type InputAreaProps = InputAutoCompletePropsBase & { export const InputArea: FC = (props) => { // state const areas = useHAAreas(); - console.log(areas); return ( = ({ return ; } else if ("entity" in option.data.selector) { const options = option.data.selector.entity ?? {}; - console.log(options); return ( { dummyNamer, false ) - ).toEqual("Logic"); + ).toEqual("None"); expect( getDescriptionFromAutomationNode( { @@ -169,7 +169,7 @@ test("get and/or/not condition description", () => { dummyNamer, false ) - ).toEqual("Logic"); + ).toEqual("None"); expect( getDescriptionFromAutomationNode( { @@ -179,7 +179,7 @@ test("get and/or/not condition description", () => { dummyNamer, false ) - ).toEqual("Logic"); + ).toEqual("None"); }); test("get Numeric State condition description", () => {