We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3792885 commit 6114270Copy full SHA for 6114270
src/target.js
@@ -67,7 +67,8 @@ export default class Target {
67
async mockRequests(options) {
68
if (!this.error) {
69
try {
70
- await recorder(this.browser, { ...options, ...{ page: this.page } });
+ const mockeerOptions = Object.assign({}, options, { page: this.page }); // eslint-disable-line prefer-object-spread/prefer-object-spread
71
+ await recorder(this.browser, mockeerOptions);
72
this.testConfig.imageType = (options && options.type) || 'png';
73
return this.image;
74
} catch (error) {
0 commit comments