Skip to content

Commit

Permalink
Fix unit tests testing the wrong thing
Browse files Browse the repository at this point in the history
  • Loading branch information
Xon committed Sep 4, 2024
1 parent 5448b99 commit 6362e49
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/scripts/choices.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -966,7 +966,7 @@ describe('choices', () => {

it('triggers event with null groupValue', () => {
expect(passedElementTriggerEventStub.called).to.equal(true);
expect(passedElementTriggerEventStub.lastCall.args[0]).to.equal(EventType.highlightItem);
expect(passedElementTriggerEventStub.lastCall.args[0]).to.equal(EventType.unhighlightItem);
expect(passedElementTriggerEventStub.lastCall.args[1]).to.contains({
value: item.value,
label: item.label,
Expand All @@ -983,7 +983,7 @@ describe('choices', () => {

it('triggers event with groupValue', () => {
expect(passedElementTriggerEventStub.called).to.equal(true);
expect(passedElementTriggerEventStub.lastCall.args[0]).to.equal(EventType.highlightItem);
expect(passedElementTriggerEventStub.lastCall.args[0]).to.equal(EventType.unhighlightItem);
expect(passedElementTriggerEventStub.lastCall.args[1]).to.contains({
value: item.value,
label: item.label,
Expand Down

0 comments on commit 6362e49

Please sign in to comment.