replace tap with tape

This commit is contained in:
Vladimir Agafonkin 2019-06-06 20:44:18 +03:00
parent b03a3684ce
commit bd2b5622ba
2 changed files with 8 additions and 8 deletions

View File

@ -15,11 +15,11 @@
"devDependencies": {
"eslint": "^4.19.1",
"eslint-config-mourner": "^2.0.3",
"tap": "^12.5.0"
"tape": "^4.10.2"
},
"scripts": {
"pretest": "eslint index.js bin/pixelmatch test/test.js",
"test": "tap test/test.js -t 80"
"test": "node test/test.js"
},
"repository": {
"type": "git",

View File

@ -1,10 +1,10 @@
'use strict';
var PNG = require('pngjs').PNG,
fs = require('fs'),
test = require('tap').test,
path = require('path'),
match = require('../.');
var PNG = require('pngjs').PNG;
var fs = require('fs');
var test = require('tape').test;
var path = require('path');
var match = require('../.');
diffTest('1a', '1b', '1diff', 0.05, false, 143);
diffTest('2a', '2b', '2diff', 0.05, false, 12437);
@ -43,7 +43,7 @@ function diffTest(imgPath1, imgPath2, diffPath, threshold, includeAA, expectedMi
t.same(diff.data, expectedDiff.data, 'diff image');
t.same(mismatch, expectedMismatch, 'number of mismatched pixels');
t.same(mismatch, mismatch2, 'number of mismatched pixels');
t.same(mismatch, mismatch2, 'number of mismatched pixels without diff');
t.end();
});