fixed unittest and updated gitignore

This commit is contained in:
sofiekedvik
2017-10-31 13:50:11 +01:00
parent e892946ca0
commit 3e04bc68d9
3 changed files with 1928 additions and 1926 deletions
+2
View File
@@ -3,3 +3,5 @@ node_modules
*.sublime-workspace *.sublime-workspace
*.idea *.idea
dist dist
*.DS_Store
package-lock.json
+1 -1
View File
@@ -20,7 +20,7 @@
assert.strictEqual(data.width, 400, 'sets image width'); assert.strictEqual(data.width, 400, 'sets image width');
assert.strictEqual(data.height, 200, 'sets image height'); assert.strictEqual(data.height, 200, 'sets image height');
assert.strictEqual(data.x, 0, 'sets crop x'); assert.strictEqual(data.x, 0, 'sets crop x');
assert.equal(data.y, 0.12482117310443483, 'sets crop y'); assert.strictEqual(data.y.toFixed(7), 0.12482117310443483.toFixed(7), 'sets crop y');
done(); done();
}); });
}); });