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 @@