File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -49,6 +49,6 @@ expect(wrapper.is(Foo)).toBe(true)
49
49
Using a find option object, ` vue-test-utils ` allows for selecting elements by ` $ref ` on wrapper components.
50
50
51
51
``` js
52
- const buttonWrapper = wrapper .find ({ ref: ' myButton' });
53
- buttonWrapper .trigger (' click' );
52
+ const buttonWrapper = wrapper .find ({ ref: ' myButton' })
53
+ buttonWrapper .trigger (' click' )
54
54
```
Original file line number Diff line number Diff line change @@ -244,14 +244,14 @@ describe('Modules.vue', () => {
244
244
})
245
245
})
246
246
247
- it (" appelle l'action du store moduleActionClick quand le bouton est cliqué" , () => {
247
+ it (' appelle l\ ' action du store moduleActionClick quand le bouton est cliqué' , () => {
248
248
const wrapper = shallow (Modules, { store, localVue })
249
249
const button = wrapper .find (' button' )
250
250
button .trigger (' click' )
251
251
expect (actions .moduleActionClick ).toHaveBeenCalled ()
252
252
})
253
253
254
- it (" affiche `state.inputValue` dans la première balise <p>" , () => {
254
+ it (' affiche `state.inputValue` dans la première balise <p>' , () => {
255
255
const wrapper = shallow (Modules, { store, localVue })
256
256
const p = wrapper .find (' p' )
257
257
expect (p .text ()).toBe (state .module .clicks .toString ())
You can’t perform that action at this time.
0 commit comments