From 1dd262d3166f8a9b4359f64f2629e12b4661d8fb Mon Sep 17 00:00:00 2001 From: Rachel Date: Thu, 6 Aug 2020 19:25:13 +0800 Subject: [PATCH] perf(container): test code & doc indentation --- .../container/__tests__/container.spec.ts | 2 +- packages/container/doc/basic.vue | 54 +++++++++---------- 2 files changed, 28 insertions(+), 28 deletions(-) diff --git a/packages/container/__tests__/container.spec.ts b/packages/container/__tests__/container.spec.ts index c6445ab4163d1..141edef940653 100644 --- a/packages/container/__tests__/container.spec.ts +++ b/packages/container/__tests__/container.spec.ts @@ -32,7 +32,7 @@ describe('Container.vue', () => { } const wrapper = mount(TestComponent) - expect(wrapper.vm.$el.classList.contains('is-vertical')).toBe(true) + expect(wrapper.classes('is-vertical')).toBe(true) }) test('direction', () => { diff --git a/packages/container/doc/basic.vue b/packages/container/doc/basic.vue index 6f54afd5bf01d..dda6db01e4d67 100644 --- a/packages/container/doc/basic.vue +++ b/packages/container/doc/basic.vue @@ -50,31 +50,31 @@