fix(editor): Remove isOwner from IUser interface (#8888)
This commit is contained in:
@@ -2,6 +2,8 @@ import { render } from '@testing-library/vue';
|
||||
import V1Banner from '../V1Banner.vue';
|
||||
import { createPinia, setActivePinia } from 'pinia';
|
||||
import { useUsersStore } from '@/stores/users.store';
|
||||
import { ROLE } from '@/constants';
|
||||
import type { IUser } from '@/Interface';
|
||||
|
||||
describe('V1 Banner', () => {
|
||||
let pinia: ReturnType<typeof createPinia>;
|
||||
@@ -22,8 +24,8 @@ describe('V1 Banner', () => {
|
||||
|
||||
it('should render banner with dismiss call if user is owner', () => {
|
||||
vi.spyOn(usersStore, 'currentUser', 'get').mockReturnValue({
|
||||
role: 'global:owner',
|
||||
});
|
||||
role: ROLE.Owner,
|
||||
} as IUser);
|
||||
|
||||
const { container } = render(V1Banner);
|
||||
expect(container).toMatchSnapshot();
|
||||
|
||||
Reference in New Issue
Block a user