Skip to content

Commit fb32039

Browse files
committed
fix: add actionResult type and remove debug lines
1 parent 16c30d0 commit fb32039

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

src/lib.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,6 @@ export class ScrapeDo {
9797
pwbParsed = JSON.stringify(options.playWithBrowser);
9898
}
9999

100-
console.log(encodeURIComponent(cookies || ""));
101-
102100
const params = {
103101
...options,
104102
extraHeaders: options.extraHeaders ? true : undefined,

src/types.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,13 @@ export type DoErrorResponse = {
148148
export interface DoRenderResponse {
149149
networkRequests?: any[];
150150
websocketResponses?: any[];
151-
actionResults?: any[];
151+
actionResults?: {
152+
action: string;
153+
error?: string;
154+
success: boolean;
155+
index: number;
156+
response?: any;
157+
}[];
152158
screenShots?: { type: string; image; string; error: string }[];
153159
}
154160

tests/lib.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ describe("Usability tests", () => {
4848
A123: "Cookie",
4949
},
5050
});
51-
console.log(response.content);
51+
5252
expect(response.statusCode).toBe(200);
5353
expect(response.content.headers["Cookie"]).toStrictEqual(["A123=Cookie"]);
5454
});

0 commit comments

Comments
 (0)