Skip to content

Commit 28ef762

Browse files
richard-mckennaphanan
authored andcommitted
Update code example formatting to be consistent (vuejs#1815)
Changed the formatting of setData to match the other examples of setData.
1 parent 72ef7a9 commit 28ef762

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,7 @@ test('Foo', () => {
5757
expect(wrapper.find('.error').exists()).toBe(true)
5858

5959
// update the name to be long enough
60-
wrapper.setData({
61-
username: 'Lachlan'
62-
})
60+
wrapper.setData({ username: 'Lachlan' })
6361

6462
// assert the error has gone away
6563
expect(wrapper.find('.error').exists()).toBe(false)

0 commit comments

Comments
 (0)