test: add propsData

This commit is contained in:
ogerly 2020-03-05 09:21:35 +01:00
parent ee06039982
commit 26a547cdaf

View File

@ -9,5 +9,21 @@ describe('DisableModal.vue', () => {
let propsData
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,
},
}
})
})