Socket
Socket
Sign inDemoInstall

underskore

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

underskore - npm Package Compare versions

Comparing version 0.0.5 to 0.0.6

test/.jshintrc

12

package.json
{
"name": "underskore",
"version": "0.0.5",
"version": "0.0.6",
"description": "[Underscore.js](http://underscorejs.org/) and a little more",
"main": "lib/index.js",
"scripts": {
"test": "mocha --reporter spec",
"test": "mocha -R spec",
"lint": "jshint lib",
"prepublish": "npm run lint && npm run test"
"coverage": "mocha -r jscoverage -R mocha-lcov-reporter | ./node_modules/coveralls/bin/coveralls.js",
"prepublish": "npm run lint && npm run test && npm run coverage"
},

@@ -31,4 +32,7 @@ "repository": {

"chai": "^2.1.2",
"mocha": "^2.2.1"
"coveralls": "^2.11.2",
"jscoverage": "^0.5.9",
"mocha": "^2.2.1",
"mocha-lcov-reporter": "0.0.2"
}
}
# underskore
[![Coverage Status](https://coveralls.io/repos/kunalgolani/underskore/badge.svg?branch=master)](https://coveralls.io/r/kunalgolani/underskore?branch=master)
[Underscore.js](http://underscorejs.org/) and a little more

@@ -13,1 +16,4 @@

=> {a: 2, b: 1}
```
Feel free to fork, extend and contribute. :)

@@ -8,12 +8,16 @@ "use strict";

describe('delta', function() {
it('should return the first argument without the identical properties from the second argument', function() {
var x = {
a: 1,
b: 'b',
c: null,
d: []
},
y = _.clone(x);
var x = {
a: 1,
b: 'b',
c: null,
d: []
},
y = _.clone(x);
it('should return an empty object for identical initial and final objects', function() {
/*jshint expr:true*/
_.delta(x, y).should.be.empty;
});
it('should return the properties from final that aren\'t the same as the ones in initial', function() {
y.a = 2;

@@ -23,5 +27,7 @@ _.delta(x, y).should.deep.equal({

});
});
it('should not treat similar objects as equal, and should ignore any new properties in initial', function() {
y.c = null;
y.d = [];
y.c = null;
x.e = {};

@@ -28,0 +34,0 @@ _.delta(x, y).should.deep.equal({

Sorry, the diff of this file is not supported yet

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