Update create-matrix.test.js

This commit is contained in:
Aleksandr Statciuk 2022-02-05 07:27:25 +03:00
parent 46deb7f004
commit 7c8f5612ba

View File

@ -3,7 +3,7 @@ const path = require('path')
const { execSync } = require('child_process')
beforeEach(() => {
fs.copyFileSync('tests/__data__/input/channels.db', 'tests/__data__/temp/channels.db')
fs.copyFileSync('tests/__data__/input/streams.db', 'tests/__data__/temp/streams.db')
})
afterEach(() => {
@ -13,7 +13,7 @@ afterEach(() => {
it('can create valid matrix', () => {
const result = execSync(
'DB_FILEPATH=tests/__data__/temp/channels.db node scripts/commands/create-matrix.js',
'DB_FILEPATH=tests/__data__/temp/streams.db node scripts/commands/create-matrix.js',
{ encoding: 'utf8' }
)
expect(result).toBe('::set-output name=matrix::{"cluster_id":[1,3]}\n')