Skip to content
This repository was archived by the owner on Jan 11, 2023. It is now read-only.

Commit 9886262

Browse files
committed
Add additional setPausePoint mocks (#5752)
1 parent 1d47f64 commit 9886262

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/actions/tests/helpers/threadClient.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,5 +86,6 @@ export const sourceThreadClient = {
8686
});
8787
},
8888
threadClient: async () => {},
89-
getFrameScopes: async () => {}
89+
getFrameScopes: async () => {},
90+
setPausePoints: async () => {}
9091
};

src/actions/tests/pause.spec.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,9 @@ const mockThreadClient = {
1919
stepInResolve = _resolve;
2020
}),
2121
stepOver: () => new Promise(_resolve => _resolve),
22-
evaluate: () => new Promise(_resolve => {}),
22+
evaluate: async () => {},
2323
getFrameScopes: async frame => frame.scope,
24+
setPausePoints: async () => {},
2425
setBreakpoint: () => new Promise(_resolve => {}),
2526
sourceContents: sourceId => {
2627
return new Promise((resolve, reject) => {

0 commit comments

Comments
 (0)