File tree 1 file changed +5
-4
lines changed
1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,9 @@ var request = require('request');
9
9
var test = require ( 'tape' ) ;
10
10
var gm = require ( 'gm' ) ;
11
11
12
+ var TOLERANCE = 1e-6 ; // pixel comparison tolerance
13
+ var BASE_TIMEOUT = 500 ; // base timeout time
14
+ var BATCH_SIZE = 5 ; // size of each test 'batch'
12
15
var touch = function ( fileName ) {
13
16
fs . closeSync ( fs . openSync ( fileName , 'w' ) ) ;
14
17
} ;
@@ -55,9 +58,7 @@ function runAll() {
55
58
) ;
56
59
} ) ;
57
60
58
- var BASE_TIMEOUT = 500 , // base timeout time
59
- BATCH_SIZE = 5 , // size of each test 'batch'
60
- cnt = 0 ;
61
+ var cnt = 0 ;
61
62
62
63
function testFunction ( ) {
63
64
testMock ( mocks [ cnt ++ ] , t ) ;
@@ -98,7 +99,7 @@ function testMock(fileName, t) {
98
99
var options = {
99
100
file : diffPath ,
100
101
highlightColor : 'purple' ,
101
- tolerance : 1e-6
102
+ tolerance : TOLERANCE
102
103
} ;
103
104
104
105
/*
You can’t perform that action at this time.
0 commit comments