mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
test: add propsData
This commit is contained in:
parent
ee06039982
commit
26a547cdaf
@ -9,5 +9,21 @@ describe('DisableModal.vue', () => {
|
|||||||
let propsData
|
let propsData
|
||||||
let wrapper
|
let wrapper
|
||||||
|
|
||||||
|
beforeEach(() => {
|
||||||
|
propsData = {
|
||||||
|
slug: "oger-ly",
|
||||||
|
id: "u1",
|
||||||
|
name: "Oger Ly",
|
||||||
|
avatar: "avatar-link",
|
||||||
|
contributionsCount: "42",
|
||||||
|
commentedCount: "24",
|
||||||
|
createdAt: "date-created-at",
|
||||||
|
}
|
||||||
|
mocks = {
|
||||||
|
$t: jest.fn(),
|
||||||
|
$filters: {
|
||||||
|
truncate: a => a,
|
||||||
|
},
|
||||||
|
}
|
||||||
|
})
|
||||||
})
|
})
|
||||||
Loading…
x
Reference in New Issue
Block a user