diff --git a/scripts/commands/update-database.js b/scripts/commands/save-results.js similarity index 100% rename from scripts/commands/update-database.js rename to scripts/commands/save-results.js diff --git a/tests/commands/update-database.test.js b/tests/commands/save-results.test.js similarity index 88% rename from tests/commands/update-database.test.js rename to tests/commands/save-results.test.js index d2fcf55c..fc8f8c7e 100644 --- a/tests/commands/update-database.test.js +++ b/tests/commands/save-results.test.js @@ -7,12 +7,12 @@ beforeEach(() => { fs.mkdirSync('tests/__data__/output') execSync( - 'DB_DIR=tests/__data__/output/database LOGS_DIR=tests/__data__/input/logs node scripts/commands/update-database.js', + 'DB_DIR=tests/__data__/output/database LOGS_DIR=tests/__data__/input/logs node scripts/commands/save-results.js', { encoding: 'utf8' } ) }) -it('can update database', () => { +it('can save results to database', () => { const output = fs.readFileSync(path.resolve('tests/__data__/output/database/programs.db'), { encoding: 'utf8' })