Update update.test.js
This commit is contained in:
parent
38dd1fcb9a
commit
8b46709295
@ -32,9 +32,20 @@ removed 1 duplicates
|
|||||||
done
|
done
|
||||||
`)
|
`)
|
||||||
|
|
||||||
expect(content('tests/__data__/output/database/streams.db')).toEqual(
|
let input = content('tests/__data__/input/database/db_update.streams.db')
|
||||||
content('tests/__data__/expected/database/db_update.streams.db')
|
let output = content('tests/__data__/output/database/streams.db')
|
||||||
)
|
let expected = content('tests/__data__/expected/database/db_update.streams.db')
|
||||||
|
|
||||||
|
let inputDate = input.find(i => i._id === '2ST8btby3mmsgPF0')['updated_at']
|
||||||
|
let outputDate = output.find(i => i._id === '2ST8btby3mmsgPF0')['updated_at']
|
||||||
|
|
||||||
|
expect(outputDate).not.toEqual(inputDate)
|
||||||
|
|
||||||
|
output = output.map(i => {
|
||||||
|
delete i['updated_at']
|
||||||
|
return i
|
||||||
|
})
|
||||||
|
expect(output).toEqual(expected)
|
||||||
})
|
})
|
||||||
|
|
||||||
function content(filepath) {
|
function content(filepath) {
|
||||||
|
Loading…
Reference in New Issue
Block a user