File tree Expand file tree Collapse file tree 1 file changed +13
-13
lines changed Expand file tree Collapse file tree 1 file changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -150,22 +150,22 @@ import { shallowMount } from '@vue/test-utils'
150
150
151
151
describe (' Foo' , () => {
152
152
it (' メッセージを描画し、ユーザー入力に正しく応答します' , () => {
153
- const wrapper = shallowMount (Foo, {
154
- data: {
155
- message: ' Hello World' ,
156
- username: ' '
157
- }
158
- })
153
+ const wrapper = shallowMount (Foo, {
154
+ data: {
155
+ message: ' Hello World' ,
156
+ username: ' '
157
+ }
158
+ })
159
159
160
- // message が描画されていたら見られる
161
- expect (wrapper .find (' .message' ).text ()).toEqual (' Hello World' )
160
+ // message が描画されていたら見られる
161
+ expect (wrapper .find (' .message' ).text ()).toEqual (' Hello World' )
162
162
163
- // エラーのアサートが描画される
164
- expect (wrapper .find (' .error' ).exists ()).toBeTruthy ()
163
+ // エラーのアサートが描画される
164
+ expect (wrapper .find (' .error' ).exists ()).toBeTruthy ()
165
165
166
- // `username`を更新してエラーのアサートが描画されなくなる
167
- wrapper .setData ({ username: ' Lachlan' })
168
- expect (wrapper .find (' .error' ).exists ()).toBeFalsy ()
166
+ // `username`を更新してエラーのアサートが描画されなくなる
167
+ wrapper .setData ({ username: ' Lachlan' })
168
+ expect (wrapper .find (' .error' ).exists ()).toBeFalsy ()
169
169
})
170
170
})
171
171
```
You can’t perform that action at this time.
0 commit comments