Skip to content

Commit

Permalink
Reenabling tests
Browse files Browse the repository at this point in the history
  • Loading branch information
maxwroc committed Feb 16, 2024
1 parent 6e067e2 commit 27791b5
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions test/other/filter.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,15 +119,15 @@ describe("Filter", () => {
expect(isValid).toBe(expectedIsVlid);
})
test.each([
// [44, <FilterOperator>"<", "44,1", true],
// [44, <FilterOperator>">", "44.1", false],
// [true, <FilterOperator>"=", "false", false],
// [true, <FilterOperator>"=", "true", false],
// [true, <FilterOperator>"=", true, true],
// [true, undefined, true, true],
// [false, undefined, true, false],
// [true, undefined, false, false],
// [true, undefined, null, false],
[44, <FilterOperator>"<", "44,1", true],
[44, <FilterOperator>">", "44.1", false],
[true, <FilterOperator>"=", "false", false],
[true, <FilterOperator>"=", "true", false],
[true, <FilterOperator>"=", true, true],
[true, undefined, true, true],
[false, undefined, true, false],
[true, undefined, false, false],
[true, undefined, null, false],
[null, undefined, null, true],
])("non mixed types of values", (attributeValue: FilterValueType, operator: FilterOperator | undefined, value: FilterValueType, expectedIsVlid: boolean) => {
const hassMock = new HomeAssistantMock();
Expand Down

0 comments on commit 27791b5

Please sign in to comment.