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', {
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 utils = require('./utils.js');
const utils = require('./utils');
const install = module.exports;
const questions = {};

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

@ -447,7 +447,7 @@ describe('Flags', () => {
});
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({
cid: category.cid,
uid: uid3,
@ -551,7 +551,7 @@ describe('Flags', () => {
});
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 reporteeUid;
async.waterfall([
@ -694,7 +694,7 @@ describe('Flags', () => {
});
describe('(websockets)', () => {
const SocketFlags = require('../src/socket.io/flags.js');
const SocketFlags = require('../src/socket.io/flags');
let pid;
let tid;
before((done) => {

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

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

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

Loading…
Cancel
Save