Skip to content

Commit cdc0762

Browse files
vvanpoafontcu
andauthored
test: follow convention for scenario statements
Co-Authored-By: Adrià Fontcuberta <afontcu@gmail.com>
1 parent 8ec4bfc commit cdc0762

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

test/specs/wrapper/setChecked.spec.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ describeWithShallowAndMount('setChecked', mountingMethod => {
5555
expect(wrapper.find('.counter').text()).to.equal('4')
5656
})
5757

58-
it('should trigger a change event when called on a checkbox', () => {
58+
it('triggers a change event when called on a checkbox', () => {
5959
const listener = sinon.spy()
6060

6161
mountingMethod({
@@ -74,7 +74,7 @@ describeWithShallowAndMount('setChecked', mountingMethod => {
7474
expect(listener).to.have.been.called
7575
})
7676

77-
it('should not trigger a change event if the checkbox is already checked', () => {
77+
it('does not trigger a change event if the checkbox is already checked', () => {
7878
const listener = sinon.spy()
7979

8080
mountingMethod({
@@ -126,7 +126,7 @@ describeWithShallowAndMount('setChecked', mountingMethod => {
126126
expect(wrapper.find('.counter').text()).to.equal('4')
127127
})
128128

129-
it('should trigger a change event when called on a radio button', () => {
129+
it('triggers a change event when called on a radio button', () => {
130130
const listener = sinon.spy()
131131

132132
mountingMethod({
@@ -143,7 +143,7 @@ describeWithShallowAndMount('setChecked', mountingMethod => {
143143
expect(listener).to.have.been.called
144144
})
145145

146-
it('should not trigger a change event if the radio button is already checked', () => {
146+
it('does not trigger a change event if the radio button is already checked', () => {
147147
const listener = sinon.spy()
148148

149149
mountingMethod({

test/specs/wrapper/setSelected.spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ describeWithShallowAndMount('setSelected', mountingMethod => {
3939
expect(wrapper.text()).to.contain('selectA')
4040
})
4141

42-
it('should trigger a change event on the parent <select>', () => {
42+
it('triggers a change event on the parent select', () => {
4343
const change = sinon.spy()
4444

4545
mountingMethod({
@@ -58,7 +58,7 @@ describeWithShallowAndMount('setSelected', mountingMethod => {
5858
expect(change).to.have.been.called
5959
})
6060

61-
it('should not trigger an event if already selected', () => {
61+
it('does not trigger an event if called on already selected option', () => {
6262
const change = sinon.spy()
6363

6464
mountingMethod({

0 commit comments

Comments
 (0)