Skip to content

Commit

Permalink
Fix C&P issue in test
Browse files Browse the repository at this point in the history
One test was duplicated. The intention of the function is to match identical strings and any case mismatch, hence that's 4 cases.
  • Loading branch information
Flamefire authored Sep 2, 2024
1 parent ffc1e90 commit 7a60b76
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/global.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,11 @@ test('Test matchesWithNodeName()', async ({ page }) => {
const elem1 = { nodeName: 'INPUT' };
const elem2 = { nodeName: 'input' };
expect(matchesWithNodeName(elem1, 'INPUT')).toBe(true);
expect(matchesWithNodeName(elem1, 'INPUT')).toBe(true);
expect(matchesWithNodeName(elem1, 'input')).toBe(true);
expect(matchesWithNodeName(elem2, 'INPUT')).toBe(true);
expect(matchesWithNodeName(elem2, 'input')).toBe(true);
expect(matchesWithNodeName(elem1, 'TEXT')).toBe(false);
expect(matchesWithNodeName(elem1, 'text')).toBe(false);
expect(matchesWithNodeName(undefined, 'INPUT')).toBe(false);
expect(matchesWithNodeName(undefined, undefined)).toBe(false);
});
Expand Down

0 comments on commit 7a60b76

Please sign in to comment.