Skip to content

Commit

Permalink
fixed unittest
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcelh1983 committed Nov 10, 2024
1 parent 516ab4d commit a85dd83
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,11 @@ describe('ChoicesMixin', () => {

await userEvent.click(choiceA);

expect(choiceA.internals.states.has('checked')).toBe(true);
expect(choiceA.internals.states.has('--checked')).toBe(true);
expect(choiceA.internals.ariaChecked).toBe('true');

await userEvent.click(choiceB);
expect(choiceB.internals.states.has('checked')).toBe(true);
expect(choiceB.internals.states.has('--checked')).toBe(true);
expect(choiceB.internals.ariaChecked).toBe('true');
});
});
Expand All @@ -104,11 +104,11 @@ describe('ChoicesMixin', () => {
expect(element.validate()).toBeFalsy();
await userEvent.click(element.children[0]);
const choiceA = getByTestId(document.body, 'A') as Choice;
expect(choiceA.internals.states.has('checked')).toBe(true);
expect(choiceA.internals.states.has('--checked')).toBe(true);
expect(choiceA.internals.ariaChecked).toBe('true');
await userEvent.click(element.children[1]);
const choiceB = getByTestId(document.body, 'B') as Choice;
expect(choiceB.internals.states.has('checked')).toBe(true);
expect(choiceB.internals.states.has('--checked')).toBe(true);
expect(choiceB.internals.ariaChecked).toBe('true');
});
});
Expand Down

0 comments on commit a85dd83

Please sign in to comment.