Browse Source

chore: fix test case

invalid w 8 months ago
parent
commit
3f67b50780
1 changed files with 1 additions and 1 deletions
  1. 1 1
      packages/@core/forward/stores/src/modules/tabbar.test.ts

+ 1 - 1
packages/@core/forward/stores/src/modules/tabbar.test.ts

@@ -101,7 +101,7 @@ describe('useCoreAccessStore', () => {
     const store = useCoreTabbarStore();
     store.cachedTabs.add('Home');
     store.cachedTabs.add('About');
-    expect(store.cachedTabs).toEqual(['Home', 'About']);
+    expect(store.cachedTabs).toEqual(new Set(['Home', 'About']));
   });
 
   it('returns all tabs, including affix tabs', () => {