fixed tests

This commit is contained in:
ari committed 2022-07-05 22:51:12 -04:00
1 parent 34394feb9d
commit 518563fddd
5 files changed
+3 -7

No files matched your search

@@ -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[] {
@@ -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),
@@ -13,7 +13,6 @@ export type InputAreaProps = InputAutoCompletePropsBase & {
export const InputArea: FC<InputAreaProps> = (props) => {
// state
const areas = useHAAreas();
console.log(areas);
return (
<InputAutoComplete
{...props}
@@ -102,7 +102,6 @@ export const ServiceEditorField: FC<ServiceEditorFieldProps> = ({
return <InputYaml {...prop} />;
} else if ("entity" in option.data.selector) {
const options = option.data.selector.entity ?? {};
console.log(options);
return (
<InputEntity
{...prop}
+3 -3
View File
@@ -159,7 +159,7 @@ test("get and/or/not condition description", () => {
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", () => {