Skip to content

Commit

Permalink
modified the test to use custom directives
Browse files Browse the repository at this point in the history
  • Loading branch information
thedarkkid committed Feb 17, 2020
1 parent 3a53f0d commit f325065
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/unit/rating.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ describe('Rating', ()=>{
});

it('adds `active` class on an inactive class when the user clicks it', ()=>{
const thirdStar = wrapper.findAll('.star').at(2);
const thirdStar = wrapper.findAll('[data-test-id = "star"]').at(2);
thirdStar.trigger('click');
expect(thirdStar.classes()).toContain('active');
})
Expand Down

0 comments on commit f325065

Please sign in to comment.