more tests
This commit is contained in:
parent
307297f836
commit
d0b00db195
8 changed files with 384 additions and 103 deletions
|
|
@ -10,7 +10,7 @@ describe('useMainStatus', () => {
|
|||
setActivePinia(createTestingPinia())
|
||||
useStatusesStore().allStatuses = new Map([
|
||||
[1, { id: 1 }],
|
||||
[2, { id: 2, retweeted_status: { id: 1 }}],
|
||||
[2, { id: 2, retweeted_status: { id: 1 } }],
|
||||
])
|
||||
})
|
||||
|
||||
|
|
@ -24,7 +24,7 @@ describe('useMainStatus', () => {
|
|||
it('repeat', () => {
|
||||
const { status, mainStatus } = useMainStatus(2)
|
||||
|
||||
expect(status.value).to.eql({ id: 2, retweeted_status: { id: 1 }})
|
||||
expect(status.value).to.eql({ id: 2, retweeted_status: { id: 1 } })
|
||||
expect(mainStatus.value).to.eql({ id: 1 })
|
||||
})
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue