Skip to content

Commit

Permalink
Cierro #8 (bug corregido en best-globals). Close #8
Browse files Browse the repository at this point in the history
  • Loading branch information
diegoefe committed Nov 28, 2016
1 parent 50848d3 commit e3ee79a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"main": "lib/discrepances.js",
"files": ["lib"],
"dependencies": {
"best-globals": "~0.5.5"
"best-globals": "~0.7.0"
},
"devDependencies": {
"body-parser": "~1.15.2",
Expand Down
4 changes: 3 additions & 1 deletion test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ var auditCopy = require('audit-copy');

var assert = require('assert');

var equalComparation = assert.deepStrictEqual || assert.deepEqual;

var fechaActual = new Date();

function Example(ini){
Expand Down Expand Up @@ -204,7 +206,7 @@ describe("discrepances", function(){
var expJ = JSON.stringify(fixture.expect);
var expJA = JSON4all.stringify(fixture.expect);
var res = discrepances(fixture.a, fixture.b, fixture.opts);
assert.deepStrictEqual(auditCopy.inObject(fixture),auditCopyFixture);
equalComparation(auditCopy.inObject(fixture),auditCopyFixture);
var resJ = JSON.stringify(res);
var resJA = JSON4all.stringify(res);
if(resJA !== expJA) { console.log("RES", resJA); console.log("EXP", expJA); console.log(" JS", resJ); }
Expand Down

0 comments on commit e3ee79a

Please sign in to comment.