Update create-matrix.test.js
This commit is contained in:
parent
46deb7f004
commit
7c8f5612ba
|
@ -3,7 +3,7 @@ const path = require('path')
|
||||||
const { execSync } = require('child_process')
|
const { execSync } = require('child_process')
|
||||||
|
|
||||||
beforeEach(() => {
|
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(() => {
|
afterEach(() => {
|
||||||
|
@ -13,7 +13,7 @@ afterEach(() => {
|
||||||
|
|
||||||
it('can create valid matrix', () => {
|
it('can create valid matrix', () => {
|
||||||
const result = execSync(
|
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' }
|
{ encoding: 'utf8' }
|
||||||
)
|
)
|
||||||
expect(result).toBe('::set-output name=matrix::{"cluster_id":[1,3]}\n')
|
expect(result).toBe('::set-output name=matrix::{"cluster_id":[1,3]}\n')
|
||||||
|
|
Loading…
Reference in New Issue