Skip to content

Commit dc57854

Browse files
committed
remove _.isArray and _.object
1 parent 27e6752 commit dc57854

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

modules/tests-ui/tester.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ function processPluginTests(pluginTest, plugin, count, cb) {
272272

273273
cb(null, [tests]);
274274

275-
} else if (_.isArray(tests)) {
275+
} else if (Array.isArray(tests)) {
276276

277277
async.map(tests.filter(function(x) {return x;}), function(url, cb) {
278278

modules/tests-ui/utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ export function loadPluginTests(cb) {
192192

193193
function loadLogs(sets, cb) {
194194

195-
var pluginTestsDict = _.object(pluginTests.map(function(p) { return [p._id, p]; }));
195+
var pluginTestsDict = Object.fromEntries(pluginTests.map(function(p) { return [p._id, p]; }));
196196

197197
async.eachSeries(sets.filter(function(s) {return s;}), function(s, cb) {
198198

0 commit comments

Comments
 (0)