File tree 1 file changed +13
-13
lines changed
1 file changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -149,22 +149,22 @@ import { shallowMount } from '@vue/test-utils'
149
149
150
150
describe (' Foo' , () => {
151
151
it (' renders a message and responds correctly to user input' , () => {
152
- const wrapper = shallowMount (Foo, {
153
- data: {
154
- message: ' Hello World' ,
155
- username: ' '
156
- }
157
- })
152
+ const wrapper = shallowMount (Foo, {
153
+ data: {
154
+ message: ' Hello World' ,
155
+ username: ' '
156
+ }
157
+ })
158
158
159
- // see if the message renders
160
- expect (wrapper .find (' .message' ).text ()).toEqual (' Hello World' )
159
+ // see if the message renders
160
+ expect (wrapper .find (' .message' ).text ()).toEqual (' Hello World' )
161
161
162
- // assert the error is rendered
163
- expect (wrapper .find (' .error' ).exists ()).toBeTruthy ()
162
+ // assert the error is rendered
163
+ expect (wrapper .find (' .error' ).exists ()).toBeTruthy ()
164
164
165
- // update the `username` and assert error is no longer rendered
166
- wrapper .setData ({ username: ' Lachlan' })
167
- expect (wrapper .find (' .error' ).exists ()).toBeFalsy ()
165
+ // update the `username` and assert error is no longer rendered
166
+ wrapper .setData ({ username: ' Lachlan' })
167
+ expect (wrapper .find (' .error' ).exists ()).toBeFalsy ()
168
168
})
169
169
})
170
170
```
You can’t perform that action at this time.
0 commit comments