New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

gear

Package Overview
Dependencies
Maintainers
1
Versions
66
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gear - npm Package Compare versions

Comparing version 0.8.2 to 0.8.3

test/fixtures/test-tasks/index.js

2

lib/registry.js

@@ -61,2 +61,4 @@ /*

}
return this;
},

@@ -63,0 +65,0 @@

6

package.json
{
"name": "gear",
"version": "0.8.2",
"version": "0.8.3",
"description": "Gear.js - Build System for Node.js and the Browser",

@@ -19,6 +19,6 @@ "author": "Stephen Murphy <stephen@hypernaut.com>",

"devDependencies": {
"should": "0.6.x",
"mocha": "1.0.x",
"should": "1.2.x",
"mocha": "1.7.x",
"gear-lib": ">= 0.8.x"
}
}

@@ -1,9 +0,48 @@

var Registry = require('../lib/registry').Registry;
var Registry = require('../lib/registry').Registry,
path = require('path'),
fixtures = {
dirname: path.join(process.cwd(), "test/fixtures/test-tasks"),
filename: path.join(process.cwd(), "test/fixtures/test-tasks/index.js")
};
describe('Registry', function() {
describe('load()', function() {
it('should load modules');
it('should load directories');
it('should load files');
it('should load modules', function() {
var registry = new Registry();
registry.load({module: 'gear-lib'});
registry.tasks.should.include('csslint');
registry.tasks.should.include('jslint');
registry.tasks.should.include('s3');
registry.tasks.should.include('glob');
});
it('should load directories', function() {
var registry = new Registry();
registry.load({dirname: fixtures.dirname});
registry.tasks.should.include('fooga');
});
it('should load files', function() {
var registry = new Registry();
registry.load({filename: fixtures.filename});
registry.tasks.should.include('fooga');
});
it('should allow for chaining #load', function() {
var registry = new Registry();
registry.load({
tasks : {
fooga : function() {}
}
}).tasks.should.eql(registry.tasks);
});
});
});
});
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc