8000 本家に適用されたインデント修正を取り入れる( #1071 ) (#1081) · vuejs-jp-bot/jp.vuejs.org@7909407 · GitHub
[go: up one dir, main page]

Skip to content

Commit 7909407

Browse files
desigrammerkazupon
authored andcommitted
本家に適用されたインデント修正を取り入れる( vuejs#1071 ) (vuejs#1081)
1 parent 2b9fe6b commit 7909407

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

src/v2/cookbook/unit-testing-vue-components.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -150,22 +150,22 @@ import { shallowMount } from '@vue/test-utils'
150150

151151
describe('Foo', () => {
152152
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+
})
159159

160-
// message が描画されていたら見られる
161-
expect(wrapper.find('.message').text()).toEqual('Hello World')
160+
// message が描画されていたら見られる
161+
expect(wrapper.find('.message').text()).toEqual('Hello World')
162162

163-
// エラーのアサートが描画される
164-
expect(wrapper.find('.error').exists()).toBeTruthy()
163+
// エラーのアサートが描画される
164+
expect(wrapper.find('.error').exists()).toBeTruthy()
165165

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()
169169
})
170170
})
171171
```

0 commit comments

Comments
 (0)
0