Browse Source

Moved nodejs tests into nodejs folder

pull/104/head
james.cryer 7 years ago
parent
commit
15db0e01a2
  1. 0
      nodejs-tests/PeopleComparedToPeople2.png
  2. 2
      nodejs-tests/compareImages.js
  3. 2
      nodejs-tests/compareImages.test.js
  4. 2
      nodejs-tests/resemble.test.js
  5. 4
      package.json

0
demoassets/PeopleComparedToPeople2.png → nodejs-tests/PeopleComparedToPeople2.png

Before

Width:  |  Height:  |  Size: 90 KiB

After

Width:  |  Height:  |  Size: 90 KiB

2
compareImages.js → nodejs-tests/compareImages.js

@ -1,4 +1,4 @@
const resemble = require('./resemble');
const resemble = require('../resemble');
module.exports = async function(image1, image2) {
return new Promise(function(resolve, reject) {

2
compareImages.test.js → nodejs-tests/compareImages.test.js

@ -17,7 +17,7 @@ describe('compareImages', () => {
expect(buffer.length).toBe(91876);
const comparison = fs.readFileSync(
'./demoassets/PeopleComparedToPeople2.png'
'./nodejs-tests/PeopleComparedToPeople2.png'
);
expect(buffer.equals(comparison)).toBe(true);

2
resemble.test.js → nodejs-tests/resemble.test.js

@ -1,4 +1,4 @@
const resemble = require('./resemble');
const resemble = require('../resemble');
const fs = require('fs');
describe('resemble', () => {

4
package.json

@ -22,8 +22,8 @@
},
"homepage": "https://github.com/Huddle/Resemble.js",
"scripts": {
"test": "jest .",
"test-watch": "jest --watch ."
"test": "jest ./nodejs-tests",
"test-watch": "jest --watch ./nodejs-tests"
},
"devDependencies": {
"chai": "^3.4.1",

Loading…
Cancel
Save