prepareStatus: created_at_parsed.
This commit is contained in:
parent
59647798b9
commit
aeb8868b82
2 changed files with 13 additions and 0 deletions
|
@ -26,6 +26,15 @@ describe('Statuses.prepareStatus', () => {
|
|||
|
||||
expect(prepareStatus(nsfw).nsfw).to.eq(false)
|
||||
})
|
||||
|
||||
it('sets the created_at_parsed property', () => {
|
||||
const status = makeMockStatus({id: 1})
|
||||
status.created_at = ''
|
||||
expect(status.created_at_parsed).to.eq(undefined)
|
||||
|
||||
const prepared = prepareStatus(status)
|
||||
expect(prepared.created_at_parsed).to.not.eq(undefined)
|
||||
})
|
||||
})
|
||||
|
||||
describe('Statuses.findMaxId', () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue