Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
aheckmann committed Dec 28, 2017
1 parent 0286f47 commit 42c7edf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"license": "MIT",
"devDependencies": {
"async": "~0.9.0",
"nsp": "^3"
"nsp": "^2.8.1"
},
"dependencies": {
"array-parallel": "~0.1.3",
Expand Down
6 changes: 3 additions & 3 deletions test/getterIdentify.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ module.exports = function (_, dir, finish, gm) {
assert.equal(d.Orientation, 'TopLeft');
assert.equal(d['Geometry'], '430x488+0+0');
assert.equal(d['Print size'], '5.97222x6.77778');
assert.equal(d['Channel depth'].Red, '8-bit');
assert.equal(d['Channel depth'].Green, '8-bit');
assert.equal(d['Channel statistics'].Red.min, '0 (0)');
assert.ok(d['Channel depth'].Red || d['Channel depth'].red);
assert.ok(d['Channel depth'].Green || d['Channel depth'].green);
assert.ok(/0\s+\(0\)/.test(d['Channel statistics'].Red.min));

var sd = d['Channel statistics'].Red['standard deviation'].split(' ')
var sd1 = parseFloat(sd[0])
Expand Down

0 comments on commit 42c7edf

Please sign in to comment.