Skip to content

Commit

Permalink
Rename log.js to Log.js
Browse files Browse the repository at this point in the history
  • Loading branch information
plocket committed Nov 22, 2024
1 parent 435b412 commit 976d66e
Show file tree
Hide file tree
Showing 12 changed files with 11 additions and 12 deletions.
2 changes: 1 addition & 1 deletion lib/docassemble/docassemble_api_interface.js
Original file line number Diff line number Diff line change
@@ -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');

Expand Down
2 changes: 1 addition & 1 deletion lib/docassemble/server_install.js
Original file line number Diff line number Diff line change
@@ -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`;
Expand Down
2 changes: 1 addition & 1 deletion lib/docassemble/setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -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` );
Expand Down
2 changes: 1 addition & 1 deletion lib/docassemble/takedown.js
Original file line number Diff line number Diff line change
Expand Up @@ -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`;

Expand Down
2 changes: 1 addition & 1 deletion lib/run_cucumber.js
Original file line number Diff line number Diff line change
Expand Up @@ -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`;
Expand Down
1 change: 0 additions & 1 deletion lib/scope.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
2 changes: 1 addition & 1 deletion lib/steps.js
Original file line number Diff line number Diff line change
Expand Up @@ -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`);
Expand Down
2 changes: 1 addition & 1 deletion lib/utils/log.js → lib/utils/Log.js
Original file line number Diff line number Diff line change
Expand Up @@ -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" });
* */

Expand Down
2 changes: 1 addition & 1 deletion tests/unit_tests/getAllFields.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 });

Expand Down
2 changes: 1 addition & 1 deletion tests/unit_tests/getMatchingRows.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const fields = require('./fields.fixtures.js');
const matches = require('./matches.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/matching_rows_${ Date.now() }`, context: `unit_tests getMatchingRows` });
scope.set_log({ log_obj: log });

Expand Down
2 changes: 1 addition & 1 deletion tests/unit_tests/log.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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` });
Expand Down
2 changes: 1 addition & 1 deletion tests/unit_tests/normalizeTable.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 });

Expand Down

0 comments on commit 976d66e

Please sign in to comment.