Update create-database.js

This commit is contained in:
Aleksandr Statciuk
2022-02-05 07:25:56 +03:00
parent 35a30272e4
commit 4e4579e1ef
8 changed files with 34 additions and 27 deletions

View File

@@ -6,14 +6,14 @@ beforeEach(() => {
fs.emptyDirSync('tests/__data__/output')
const stdout = execSync(
'DB_FILEPATH=tests/__data__/output/channels.db node scripts/commands/create-database.js --input-dir=tests/__data__/input/channels --max-clusters=1',
'DB_FILEPATH=tests/__data__/output/streams.db node scripts/commands/create-database.js --input-dir=tests/__data__/input/channels --max-clusters=1',
{ encoding: 'utf8' }
)
})
it('can create database', () => {
let output = content('tests/__data__/output/channels.db')
let expected = content('tests/__data__/expected/channels.db')
let output = content('tests/__data__/output/streams.db')
let expected = content('tests/__data__/expected/streams.db')
output = output.map(i => {
i._id = null