Skip to content

Commit

Permalink
chore: stop using lodash
Browse files Browse the repository at this point in the history
  • Loading branch information
dbushong committed Aug 9, 2018
1 parent 33ad991 commit efc1001
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
12 changes: 3 additions & 9 deletions lib/testium-mocha.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
const path = require('path');

const debug = require('debug')('testium-mocha');
const _ = require('lodash');
const Testium = require('testium-core');

const takeSnapshotOnFailure = require('./snapshot');
Expand Down Expand Up @@ -73,12 +72,7 @@ function getRootSuite(suite) {
}

function injectBrowser(options) {
options = _.extend(
{
reuseSession: true,
},
options || {}
);
options = Object.assign({ reuseSession: true }, options);

return function injectBrowserHook() {
const self = this;
Expand Down Expand Up @@ -136,8 +130,8 @@ function injectBrowser(options) {
if (snapshotDirectory) {
snapshotDirectory = path.resolve(config.root, snapshotDirectory);

const afterEachHook = _.partial(
takeSnapshotOnFailure,
const afterEachHook = takeSnapshotOnFailure.bind(
self,
snapshotDirectory
);
parentSuite.afterEach('takeSnapshotOnFailure', afterEachHook);
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
"dependencies": {
"bluebird": "^3.3.3",
"debug": "^2.2.0",
"lodash": "^4.6.1",
"mkdirp": "~0.5.1",
"testium-core": "^1.3.0"
},
Expand Down

0 comments on commit efc1001

Please sign in to comment.