File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ const helpers = container.helpers();
5
5
let helper = new ResembleHelper ( { baseFolder : 'string' ,
6
6
diffFolder : 'string' ,
7
7
screenshotFolder : 'string' ,
8
- prepareBaseImage : 'string' } )
8
+ prepareBaseImage : true } )
9
9
10
10
describe ( '_getHelper()' , ( ) => {
11
11
test ( 'should return error when no matching helper found' , ( ) => {
@@ -22,11 +22,11 @@ describe('_getPrepareBaseImage()', () => {
22
22
helpers [ 'Playwright' ] = { hello : 1 }
23
23
} )
24
24
test ( 'should return false when no prepareBaseImage is provided' , ( ) => {
25
- expect ( helper . _getPrepareBaseImage ( { hello : 1 } ) ) . toBeFalsy ( )
25
+ expect ( helper . _getPrepareBaseImage ( { prepareBaseImage : false , tolerance : 1 } ) ) . toBeFalsy ( )
26
26
} ) ;
27
27
28
28
test ( 'should return true when prepareBaseImage matched with config' , ( ) => {
29
- expect ( helper . _getPrepareBaseImage ( { prepareBaseImage : 'string' } ) ) . toBeTruthy ( )
29
+ expect ( helper . _getPrepareBaseImage ( { prepareBaseImage : true } ) ) . toBeTruthy ( )
30
30
} ) ;
31
31
} )
32
32
You can’t perform that action at this time.
0 commit comments