From f64b302a5ec59c85ea3a8d770121762de7e15420 Mon Sep 17 00:00:00 2001 From: Alexey Pyltsyn Date: Mon, 11 Jun 2018 12:45:22 +0300 Subject: [PATCH] Fix example indentation in the Unit Testing Vue Components recipe --- .../cookbook/unit-testing-vue-components.md | 26 +++++++++---------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/src/v2/cookbook/unit-testing-vue-components.md b/src/v2/cookbook/unit-testing-vue-components.md index f990e5763e..7bdfa5aae2 100644 --- a/src/v2/cookbook/unit-testing-vue-components.md +++ b/src/v2/cookbook/unit-testing-vue-components.md @@ -149,22 +149,22 @@ import { shallowMount } from '@vue/test-utils' describe('Foo', () => { it('renders a message and responds correctly to user input', () => { - const wrapper = shallowMount(Foo, { - data: { - message: 'Hello World', - username: '' - } - }) + const wrapper = shallowMount(Foo, { + data: { + message: 'Hello World', + username: '' + } + }) - // see if the message renders - expect(wrapper.find('.message').text()).toEqual('Hello World') + // see if the message renders + expect(wrapper.find('.message').text()).toEqual('Hello World') - // assert the error is rendered - expect(wrapper.find('.error').exists()).toBeTruthy() + // assert the error is rendered + expect(wrapper.find('.error').exists()).toBeTruthy() - // update the `username` and assert error is no longer rendered - wrapper.setData({ username: 'Lachlan' }) - expect(wrapper.find('.error').exists()).toBeFalsy() + // update the `username` and assert error is no longer rendered + wrapper.setData({ username: 'Lachlan' }) + expect(wrapper.find('.error').exists()).toBeFalsy() }) }) ```