From c974e9fa49672eaee0960670ecfe7905844f587c Mon Sep 17 00:00:00 2001 From: Lyan-u Date: Tue, 30 Apr 2024 07:39:19 +0000 Subject: [PATCH] refactor(navbar): update unit test --- src/navbar/__test__/index.test.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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', () => {