This commit is contained in:
Henry Jameson 2022-07-31 12:35:48 +03:00
commit fddb531ed2
133 changed files with 507 additions and 448 deletions

View file

@ -29,7 +29,7 @@ const generateInput = (value, padEmoji = true) => {
modelValue: value
},
slots: {
'default': () => h('input', '')
default: () => h('input', '')
}
})
return wrapper

View file

@ -4,7 +4,7 @@ import RichContent from 'src/components/rich_content/rich_content.jsx'
const attentions = []
const global = {
mocks: {
'$store': {
$store: {
state: {},
getters: {
mergedConfig: () => ({

View file

@ -163,7 +163,7 @@ const localProfileStore = createStore({
currentUser: {
credentials: ''
},
usersObject: { 100: localUser, 'testuser': localUser },
usersObject: { 100: localUser, testuser: localUser },
users: [localUser],
relationships: {}
}
@ -175,7 +175,7 @@ describe.skip('UserProfile', () => {
it('renders external profile', () => {
const wrapper = mount(UserProfile, {
global: {
plugins: [ externalProfileStore ],
plugins: [externalProfileStore],
mocks: {
$route: {
params: { id: 100 },
@ -192,7 +192,7 @@ describe.skip('UserProfile', () => {
it('renders local profile', () => {
const wrapper = mount(UserProfile, {
global: {
plugins: [ localProfileStore ],
plugins: [localProfileStore],
mocks: {
$route: {
params: { name: 'testUser' },