mirror of
https://github.com/mapbox/pixelmatch.git
synced 2026-02-01 14:53:50 +00:00
replace tap with tape
This commit is contained in:
parent
b03a3684ce
commit
bd2b5622ba
@ -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",
|
||||
|
||||
12
test/test.js
12
test/test.js
@ -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();
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user