From 8c7e7abede8facaa52da4f8169614f3e3676f506 Mon Sep 17 00:00:00 2001 From: Nick Downing Date: Fri, 7 Jan 2022 16:18:29 +1100 Subject: [PATCH] Move a.mjs, b.mjs, json and logjson files into /tests --- .gitignore | 6 ++++-- a.mjs => tests/a.mjs | 2 +- b.mjs => tests/b.mjs | 4 ++-- random.json => tests/random.json | 0 4 files changed, 7 insertions(+), 5 deletions(-) rename a.mjs => tests/a.mjs (96%) rename b.mjs => tests/b.mjs (88%) rename random.json => tests/random.json (100%) diff --git a/.gitignore b/.gitignore index e5061a5..a77e7b2 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,4 @@ -/a.json -/a.logjson +/tests/a.json +/tests/b.json +/tests/c.json +/tests/a.logjson diff --git a/a.mjs b/tests/a.mjs similarity index 96% rename from a.mjs rename to tests/a.mjs index 89f8fc8..a591b3e 100755 --- a/a.mjs +++ b/tests/a.mjs @@ -1,6 +1,6 @@ #!/usr/bin/env node -import logjson from './logjson.mjs' +import logjson from '../logjson.mjs' import fsPromises from 'fs/promises' let database = new logjson.Database(5, 1) diff --git a/b.mjs b/tests/b.mjs similarity index 88% rename from b.mjs rename to tests/b.mjs index b47c9aa..e2afb69 100755 --- a/b.mjs +++ b/tests/b.mjs @@ -1,13 +1,13 @@ #!/usr/bin/env node -import logjson from './logjson.mjs' +import logjson from '../logjson.mjs' import fsPromises from 'fs/promises' let database = new logjson.Database() await database.open('a.logjson') let transaction = database.Transaction() await fsPromises.writeFile( - 'a.json', + 'c.json', Buffer.from( JSON.stringify( await logjson.logjson_to_json(await transaction.get()), diff --git a/random.json b/tests/random.json similarity index 100% rename from random.json rename to tests/random.json -- 2.34.1