This commit is contained in:
Aleksandr Statciuk 2022-01-11 00:25:02 +03:00
parent 0a33284308
commit af41021b99
2 changed files with 2 additions and 2 deletions

View file

@ -7,12 +7,12 @@ beforeEach(() => {
fs.mkdirSync('tests/__data__/output') fs.mkdirSync('tests/__data__/output')
execSync( execSync(
'DB_DIR=tests/__data__/output/database LOGS_DIR=tests/__data__/input/logs node scripts/commands/save-results.js', 'DB_DIR=tests/__data__/output/database LOGS_DIR=tests/__data__/input/logs node scripts/commands/update-database.js',
{ encoding: 'utf8' } { encoding: 'utf8' }
) )
}) })
it('can save results', () => { it('can update database', () => {
const output = fs.readFileSync(path.resolve('tests/__data__/output/database/programs.db'), { const output = fs.readFileSync(path.resolve('tests/__data__/output/database/programs.db'), {
encoding: 'utf8' encoding: 'utf8'
}) })