Skip to content

Commit 4f43360

Browse files
committed
fix: UTs
1 parent 3f1bb95 commit 4f43360

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

__test__/index.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const helpers = container.helpers();
55
let helper = new ResembleHelper({ baseFolder: 'string',
66
diffFolder: 'string',
77
screenshotFolder: 'string',
8-
prepareBaseImage: 'string'})
8+
prepareBaseImage: true })
99

1010
describe('_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

0 commit comments

Comments
 (0)