Skip to content

Commit 6114270

Browse files
authored
Fix linting (#124)
1 parent 3792885 commit 6114270

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/target.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,8 @@ export default class Target {
6767
async mockRequests(options) {
6868
if (!this.error) {
6969
try {
70-
await recorder(this.browser, { ...options, ...{ page: this.page } });
70+
const mockeerOptions = Object.assign({}, options, { page: this.page }); // eslint-disable-line prefer-object-spread/prefer-object-spread
71+
await recorder(this.browser, mockeerOptions);
7172
this.testConfig.imageType = (options && options.type) || 'png';
7273
return this.image;
7374
} catch (error) {

0 commit comments

Comments
 (0)