Skip to content

Commit

Permalink
tests: fix imports
Browse files Browse the repository at this point in the history
  • Loading branch information
nleush committed Oct 26, 2021
1 parent f2c95b0 commit 430407a
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 11 deletions.
9 changes: 5 additions & 4 deletions lib/loader/pluginLoader.js
Original file line number Diff line number Diff line change
Expand Up @@ -341,11 +341,12 @@
for(var i = 0; i < mixins.length; i++) {

var mixin = mixins[i];
if (plugins[mixin]) {
var m = plugins[mixin].getPluginLastModifiedDate();

var m = plugins[mixin].getPluginLastModifiedDate();

if (m > modified) {
modified = m;
if (m > modified) {
modified = m;
}
}
}
}
Expand Down
2 changes: 2 additions & 0 deletions modules/tests-ui/models.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import * as moment from 'moment';
import config from '../../config.js';
global.CONFIG = config;

var mongoose, db;

Expand Down
10 changes: 4 additions & 6 deletions modules/tests-ui/tester.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
import config from '../../config';
import config from '../../config.js';
global.CONFIG = config;

global.CONFIG = config.default;

if (!CONFIG.tests) {
console.error('Tests not started: CONFIG.tests not configured.');
process.exit(0);
return;
// return;
}

process.title = "iframely-tests";
Expand All @@ -15,7 +13,7 @@ import * as async from 'async';
import * as _ from 'underscore';
import * as models from './models.js';
import * as utils from './utils.js';
import { run as iframely } from '../../lib/core';
import { run as iframely } from '../../lib/core.js';
import * as whitelist from '../../lib/whitelist.js';
import * as pluginLoader from '../../lib/loader/pluginLoader.js';
var plugins = pluginLoader._plugins;
Expand Down Expand Up @@ -51,7 +49,7 @@ var TestingProgress = models.TestingProgress;

if (!PluginTest) {
process.exit(0);
return;
// return;
}

function log() {
Expand Down
2 changes: 1 addition & 1 deletion modules/tests-ui/utils.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as _ from 'underscore';
import * as FeedParser from 'feedparser';
import FeedParser from 'feedparser';
import request from 'request';
import * as async from 'async';
import * as url from 'url';
Expand Down

0 comments on commit 430407a

Please sign in to comment.