You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

test-helpers

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

test-helpers - npm Package Compare versions

Comparing version
0.1.3
to
0.1.4
+7
-16
index.js

@@ -33,3 +33,8 @@ /*!

extend(helpers, Options.prototype);
helpers.init(options || {});
var opts = extend({}, options);
helpers.option('dir', opts.dir || 'test');
helpers.option('fixtures', helpers.options.dir + '/fixtures');
helpers.option('actual', helpers.options.dir + '/actual');
helpers.config(opts);
return helpers;

@@ -39,3 +44,2 @@ }

/**

@@ -51,15 +55,2 @@ * Cache for storing commonly used options.

/**
* Initialize defaults.
*
* @api private
*/
helpers.init = function(opts) {
this.option('dir', 'test');
this.option('fixtures', this.options.dir + '/fixtures');
this.option('actual', this.options.dir + '/actual');
this.config(opts);
};
/**
* Extend the options with the given `config`

@@ -81,3 +72,3 @@ * object.

helpers.config = function(config) {
this.options = extend({}, this.options, config);
extend(this.options, config);
return this;

@@ -84,0 +75,0 @@ };

{
"name": "test-helpers",
"description": "Node.js path and fs helpers for things like reading fixtures and writing results while running tests. ",
"version": "0.1.3",
"version": "0.1.4",
"homepage": "https://github.com/jonschlinkert/test-helpers",

@@ -6,0 +6,0 @@ "author": {