From cc834a5ec74986a91fce0539fd2387d9e22e032a Mon Sep 17 00:00:00 2001 From: Aleksandr Statciuk Date: Sat, 5 Feb 2022 02:55:21 +0300 Subject: [PATCH] Update create-matrix.test.js --- tests/__data__/input/{test.db => channels.db} | 0 tests/commands/create-matrix.test.js | 4 ++-- 2 files changed, 2 insertions(+), 2 deletions(-) rename tests/__data__/input/{test.db => channels.db} (100%) diff --git a/tests/__data__/input/test.db b/tests/__data__/input/channels.db similarity index 100% rename from tests/__data__/input/test.db rename to tests/__data__/input/channels.db diff --git a/tests/commands/create-matrix.test.js b/tests/commands/create-matrix.test.js index 5310cd1df..3cf1de580 100644 --- a/tests/commands/create-matrix.test.js +++ b/tests/commands/create-matrix.test.js @@ -3,7 +3,7 @@ const path = require('path') const { execSync } = require('child_process') beforeEach(() => { - fs.copyFileSync('tests/__data__/input/test.db', 'tests/__data__/temp/test.db') + fs.copyFileSync('tests/__data__/input/channels.db', 'tests/__data__/temp/channels.db') }) afterEach(() => { @@ -13,7 +13,7 @@ afterEach(() => { it('can create valid matrix', () => { const result = execSync( - 'DB_FILEPATH=tests/__data__/temp/test.db node scripts/commands/create-matrix.js', + 'DB_FILEPATH=tests/__data__/temp/channels.db node scripts/commands/create-matrix.js', { encoding: 'utf8' } ) expect(result).toBe('::set-output name=matrix::{"cluster_id":[1,3]}\n')