UNPKG
diverged
Version:
latest (0.1.3)
0.1.3
0.1.2
0.1.1
0.1.0
Compare UI screenshots with document flow detection.
diverged
/
demo
/
index.js
9 lines
(6 loc)
•
291 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
'use strict'
;
const
REF_PATH
=
'../fixtures/pricing/320_ref.png'
;
const
TEST_PATH
=
'../fixtures/pricing/320_test.png'
;
const
OUTPUT_PATH
=
`../results/
${
new
Date
().getTime()}
.png`
const
diverged =
require
(
'../src/diverged-node'
)
const
result =
diverged
(
REF_PATH
,
TEST_PATH
,
OUTPUT_PATH
);