diff --git a/lib/docassemble/docassemble_api_interface.js b/lib/docassemble/docassemble_api_interface.js index 03937147..2c68fdb5 100644 --- a/lib/docassemble/docassemble_api_interface.js +++ b/lib/docassemble/docassemble_api_interface.js @@ -1,5 +1,5 @@ const _da_REST = require('./docassemble_api_REST'); -const Log = require('../utils/log'); +const Log = require('../utils/Log'); const session_vars = require('../utils/session_vars' ); const time = require('../utils/time'); diff --git a/lib/docassemble/server_install.js b/lib/docassemble/server_install.js index 3d213e06..dc9d0a81 100755 --- a/lib/docassemble/server_install.js +++ b/lib/docassemble/server_install.js @@ -1,7 +1,7 @@ #!/usr/bin/env node const session_vars = require('../utils/session_vars'); -const Log = require('../utils/log'); +const Log = require('../utils/Log'); const fg = require('fast-glob'); const context = `server_install`; diff --git a/lib/docassemble/setup.js b/lib/docassemble/setup.js index 25334609..eb3ed24a 100755 --- a/lib/docassemble/setup.js +++ b/lib/docassemble/setup.js @@ -2,7 +2,7 @@ const child_process = require(`child_process`); -const Log = require(`../utils/log`); +const Log = require(`../utils/Log`); const session_vars = require(`../utils/session_vars` ); const files = require(`../utils/files` ); const time = require(`../utils/time` ); diff --git a/lib/docassemble/takedown.js b/lib/docassemble/takedown.js index b966c695..94ba10fc 100755 --- a/lib/docassemble/takedown.js +++ b/lib/docassemble/takedown.js @@ -2,7 +2,7 @@ const da_i = require('./docassemble_api_interface'); const session_vars = require('../utils/session_vars'); -const Log = require('../utils/log'); +const Log = require('../utils/Log'); const context = `takedown`; diff --git a/lib/run_cucumber.js b/lib/run_cucumber.js index ecb74839..193f1247 100755 --- a/lib/run_cucumber.js +++ b/lib/run_cucumber.js @@ -4,7 +4,7 @@ const fs = require('fs'); const path = require(`path`); const cucumber_api = require('@cucumber/cucumber/api'); -const Log = require('./utils/log'); +const Log = require('./utils/Log'); const session_vars = require('./utils/session_vars'); const SUMMARY_FILENAME = `cucumber-report.txt`; diff --git a/lib/scope.js b/lib/scope.js index cc4b2a98..f8538a84 100644 --- a/lib/scope.js +++ b/lib/scope.js @@ -13,7 +13,6 @@ const pdf_reader = require('./utils/pdf_reader'); const session_vars = require('./utils/session_vars'); const get_base_interview_url = require(`./docassemble/get_base_interview_url`); const time = require('./utils/time'); -// const log = require('./utils/log'); const { waitForTimeout } = require('./utils/time'); const files = require('./utils/files' ); const da_api = require('./docassemble/docassemble_api_interface'); diff --git a/lib/steps.js b/lib/steps.js index 317e4295..4dce3f30 100644 --- a/lib/steps.js +++ b/lib/steps.js @@ -19,7 +19,7 @@ const { v4: uuidv4 } = require('uuid'); // Ours const scope = require('./scope'); -const Log = require(`./utils/log`); +const Log = require(`./utils/Log`); const session_vars = require('./utils/session_vars'); const files = require('./utils/files' ); const reports = require(`./utils/reports`); diff --git a/lib/utils/log.js b/lib/utils/Log.js similarity index 99% rename from lib/utils/log.js rename to lib/utils/Log.js index a5184e67..bae401e2 100644 --- a/lib/utils/log.js +++ b/lib/utils/Log.js @@ -99,7 +99,7 @@ class Log { * this Log. For example, "setup". * * @example - * const Log = require("./lib/utils/log.js"); + * const Log = require("./lib/utils/Log.js"); * const log = new Log({ path: "_alkiln-123", context: "setup" }); * */ diff --git a/tests/unit_tests/getAllFields.test.js b/tests/unit_tests/getAllFields.test.js index 985f6970..a06009f5 100644 --- a/tests/unit_tests/getAllFields.test.js +++ b/tests/unit_tests/getAllFields.test.js @@ -8,7 +8,7 @@ const html = require('./html.fixtures.js'); const fields = require('./fields.fixtures.js'); const scope = require('../../lib/scope.js'); -const Log = require(`../../lib/utils/log.js`); +const Log = require(`../../lib/utils/Log.js`); const log = new Log({ path: `_alkiln-misc_artifacts/all_fields_${ Date.now() }`, context: `unit_tests getAllFields` }); scope.set_log({ log_obj: log }); diff --git a/tests/unit_tests/log.test.js b/tests/unit_tests/log.test.js index 6ee8251f..81d8d3d2 100644 --- a/tests/unit_tests/log.test.js +++ b/tests/unit_tests/log.test.js @@ -2,7 +2,7 @@ const chai = require('chai'); const expect = chai.expect; const fs = require(`fs`); -const Log = require('../../lib/utils/log.js'); +const Log = require('../../lib/utils/Log.js'); const path = `_alkiln-misc_artifacts/logs_${ Date.now() }`; const log = new Log({ path, context: `unit_tests log_tests` }); diff --git a/tests/unit_tests/normalizeTable.test.js b/tests/unit_tests/normalizeTable.test.js index 0807dd76..58915a47 100644 --- a/tests/unit_tests/normalizeTable.test.js +++ b/tests/unit_tests/normalizeTable.test.js @@ -6,7 +6,7 @@ const expect = chai.expect; const tables = require('./tables.fixtures.js'); const scope = require('../../lib/scope.js'); -const Log = require(`../../lib/utils/log.js`); +const Log = require(`../../lib/utils/Log.js`); const log = new Log({ path: `_alkiln-misc_artifacts/normalize_table_${ Date.now() }`, context: `unit_tests normalizeTable` }); scope.set_log({ log_obj: log });