diff --git a/src/navbar/__test__/index.test.jsx b/src/navbar/__test__/index.test.jsx index 78c739583..5ead22e74 100644 --- a/src/navbar/__test__/index.test.jsx +++ b/src/navbar/__test__/index.test.jsx @@ -9,10 +9,10 @@ describe('navbar', () => { describe('props', () => { it('fixed', async () => { const navbar = mount(); - expect(navbar.vm.navStyle).toContain('position: fixed'); + expect(navbar.element.style.position).toBe('fixed') await navbar.setProps({ fixed: false }); - expect(navbar.vm.navStyle).toContain('position: relative'); + expect(navbar.element.style.position).toBe('relative') }); it('leftArrow', () => {