From d9fb8cc6539061229d72c67e094dea1c4b0a44b5 Mon Sep 17 00:00:00 2001 From: cnotv Date: Mon, 10 Mar 2025 22:50:54 +0100 Subject: [PATCH] Fix unit test linter issues --- shell/components/auth/__tests__/Principal.test.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/shell/components/auth/__tests__/Principal.test.ts b/shell/components/auth/__tests__/Principal.test.ts index d5b48e10db..e3f7e7d8dc 100644 --- a/shell/components/auth/__tests__/Principal.test.ts +++ b/shell/components/auth/__tests__/Principal.test.ts @@ -5,7 +5,12 @@ describe('component: Principal', () => { it('should render the component', () => { const wrapper = mount(Principal, { props: { value: 'whatever' }, - global: { mocks: { $fetchState: { pending: false } } }, + global: { + mocks: { + $fetchState: { pending: false }, + $store: { getters: { 'rancher/byId': () => ({ name: 'name' }) } }, + } + }, }); expect(wrapper.exists()).toBe(true);