Fix unit test linter issues

This commit is contained in:
cnotv 2025-03-10 22:50:54 +01:00
parent a9086b7fd6
commit d9fb8cc653
1 changed files with 6 additions and 1 deletions

View File

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