Skip to content

Commit 6a8d966

Browse files
Kolar PavelDavid Zukowski
authored andcommitted
fix(counter-component-test): check for exactly two buttons
1 parent 4008dec commit 6a8d966

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/components/Counter/Counter.spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ describe('(Component) Counter', () => {
3333
})
3434

3535
it('Should render exactly two buttons.', () => {
36-
expect(_wrapper).to.have.descendants('.btn')
36+
expect(_wrapper.find('button')).to.have.length(2)
3737
})
38-
//
38+
3939
describe('An increment button...', () => {
4040
let _button
4141

0 commit comments

Comments
 (0)