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();
55let helper = new ResembleHelper ( { baseFolder : 'string' ,
66 diffFolder : 'string' ,
77 screenshotFolder : 'string' ,
8- prepareBaseImage : 'string' } )
8+ prepareBaseImage : true } )
99
1010describe ( '_getHelper()' , ( ) => {
1111 test ( 'should return error when no matching helper found' , ( ) => {
@@ -22,11 +22,11 @@ describe('_getPrepareBaseImage()', () => {
2222 helpers [ 'Playwright' ] = { hello : 1 }
2323 } )
2424 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 ( )
2626 } ) ;
2727
2828 test ( 'should return true when prepareBaseImage matched with config' , ( ) => {
29- expect ( helper . _getPrepareBaseImage ( { prepareBaseImage : 'string' } ) ) . toBeTruthy ( )
29+ expect ( helper . _getPrepareBaseImage ( { prepareBaseImage : true } ) ) . toBeTruthy ( )
3030 } ) ;
3131} )
3232
You can’t perform that action at this time.
0 commit comments