Update database/create.js

This commit is contained in:
Aleksandr Statciuk 2022-02-13 03:04:25 +03:00
parent b39dc83f8b
commit e2e7c8b81c
3 changed files with 17 additions and 17 deletions

View file

@ -13,7 +13,7 @@ beforeEach(() => {
it('can create database', () => {
let output = content('tests/__data__/output/database/streams.db')
let expected = content('tests/__data__/expected/database/streams.db')
let expected = content('tests/__data__/expected/database/db_create.streams.db')
output = output.map(i => {
i._id = null
@ -28,7 +28,8 @@ it('can create database', () => {
expect.arrayContaining([
expect.objectContaining(expected[0]),
expect.objectContaining(expected[1]),
expect.objectContaining(expected[2])
expect.objectContaining(expected[2]),
expect.objectContaining(expected[3])
])
)
})