mirror of https://github.com/rancher/dashboard.git
Fix unit test linter issues
This commit is contained in:
parent
a9086b7fd6
commit
d9fb8cc653
|
|
@ -5,7 +5,12 @@ describe('component: Principal', () => {
|
||||||
it('should render the component', () => {
|
it('should render the component', () => {
|
||||||
const wrapper = mount(Principal, {
|
const wrapper = mount(Principal, {
|
||||||
props: { value: 'whatever' },
|
props: { value: 'whatever' },
|
||||||
global: { mocks: { $fetchState: { pending: false } } },
|
global: {
|
||||||
|
mocks: {
|
||||||
|
$fetchState: { pending: false },
|
||||||
|
$store: { getters: { 'rancher/byId': () => ({ name: 'name' }) } },
|
||||||
|
}
|
||||||
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
expect(wrapper.exists()).toBe(true);
|
expect(wrapper.exists()).toBe(true);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue