Skip to content

Commit b247c61

Browse files
Update mock.ts
wrongly variable name used in example which is making it confusing to understand
1 parent 1785f11 commit b247c61

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • packages/webdriverio/src/commands/browser

packages/webdriverio/src/commands/browser/mock.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,15 +66,15 @@ export const CDP_SESSIONS: Record<string, CDPSession> = {}
6666
})
6767
6868
// mock an endpoint with a fixed fixture
69-
mock.respond([{
69+
todoMock.respond([{
7070
title: 'Injected Todo',
7171
order: null,
7272
completed: false,
7373
url: "http://todo-backend-express-knex.herokuapp.com/916"
7474
}])
7575
7676
// respond with different status code or header
77-
mock.respond([{
77+
todoMock.respond([{
7878
title: 'Injected Todo',
7979
order: null,
8080
completed: false,

0 commit comments

Comments
 (0)