fix: improper use of filename extensions

v1.18.x
Julian Lam 4 years ago
parent c3b0e2fa99
commit 16e0bca570

@ -127,7 +127,7 @@ function welcome(req, res) {
}; };
}); });
const defaults = require('./data/defaults'); const defaults = require('./data/defaults.json');
res.render('install/index', { res.render('install/index', {
url: nconf.get('url') || (`${req.protocol}://${req.get('host')}`), url: nconf.get('url') || (`${req.protocol}://${req.get('host')}`),

@ -11,7 +11,7 @@ const util = require('util');
const promptGet = util.promisify((schema, callback) => prompt.get(schema, callback)); const promptGet = util.promisify((schema, callback) => prompt.get(schema, callback));
const utils = require('./utils.js'); const utils = require('./utils');
const install = module.exports; const install = module.exports;
const questions = {}; const questions = {};

@ -12,7 +12,7 @@ const plugins = require('../plugins');
const utils = require('../utils'); const utils = require('../utils');
const Meta = require('./index'); const Meta = require('./index');
const cacheBuster = require('./cacheBuster'); const cacheBuster = require('./cacheBuster');
const defaults = require('../../install/data/defaults'); const defaults = require('../../install/data/defaults.json');
const Configs = module.exports; const Configs = module.exports;

@ -447,7 +447,7 @@ describe('Flags', () => {
}); });
it('should rescind notification if flag is resolved', async () => { it('should rescind notification if flag is resolved', async () => {
const SocketFlags = require('../src/socket.io/flags.js'); const SocketFlags = require('../src/socket.io/flags');
const result = await Topics.post({ const result = await Topics.post({
cid: category.cid, cid: category.cid,
uid: uid3, uid: uid3,
@ -551,7 +551,7 @@ describe('Flags', () => {
}); });
it('should not error if user blocked target', (done) => { it('should not error if user blocked target', (done) => {
const SocketFlags = require('../src/socket.io/flags.js'); const SocketFlags = require('../src/socket.io/flags');
let reporterUid; let reporterUid;
let reporteeUid; let reporteeUid;
async.waterfall([ async.waterfall([
@ -694,7 +694,7 @@ describe('Flags', () => {
}); });
describe('(websockets)', () => { describe('(websockets)', () => {
const SocketFlags = require('../src/socket.io/flags.js'); const SocketFlags = require('../src/socket.io/flags');
let pid; let pid;
let tid; let tid;
before((done) => { before((done) => {

@ -17,7 +17,7 @@ global.env = process.env.NODE_ENV || 'production';
const winston = require('winston'); const winston = require('winston');
const packageInfo = require('../../package'); const packageInfo = require('../../package.json');
winston.add(new winston.transports.Console({ winston.add(new winston.transports.Console({
format: winston.format.combine( format: winston.format.combine(

@ -2,7 +2,7 @@
const assert = require('assert'); const assert = require('assert');
const shim = require('../public/src/modules/translator.js'); const shim = require('../public/src/modules/translator');
const { Translator } = shim; const { Translator } = shim;
const db = require('./mocks/databasemock'); const db = require('./mocks/databasemock');

@ -3,7 +3,7 @@
const assert = require('assert'); const assert = require('assert');
const { JSDOM } = require('jsdom'); const { JSDOM } = require('jsdom');
const utils = require('../public/src/utils.js'); const utils = require('../public/src/utils');
const slugify = require('../src/slugify'); const slugify = require('../src/slugify');
const db = require('./mocks/databasemock'); const db = require('./mocks/databasemock');

Loading…
Cancel
Save