Skip to content

Commit

Permalink
feat: add sourcegraph.app.log to stubs (#142)
Browse files Browse the repository at this point in the history
  • Loading branch information
tjkandala committed May 13, 2021
1 parent af8e6b1 commit 9c72367
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -67,6 +67,6 @@
"@types/sinon": "9.0.4",
"rxjs": "^6.5.1",
"sinon": "^9.0.2",
"sourcegraph": "^25.2.0"
"sourcegraph": "^25.3.0"
}
}
1 change: 1 addition & 0 deletions src/api.ts
Expand Up @@ -98,6 +98,7 @@ export const createStubSourcegraphAPI = () => {
(provider: sourcegraph.FileDecorationProvider) => new Subscription()
),
createStatusBarItemType: () => ({ key: `statusBarItemType${statusBarItemTypeCounter++}` }),
log: sinon.spy((message?: any, ...optionalParameters: any[]) => {}),
},
configuration: Object.assign(configSubject.pipe(mapTo(undefined)), {
get: <C extends object = { [key: string]: any }>(): sourcegraph.Configuration<C> => ({
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Expand Up @@ -6245,10 +6245,10 @@ source-map@^0.6.0, source-map@^0.6.1, source-map@~0.6.1:
resolved "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz#74722af32e9614e9c287a8d0bbde48b5e2f1a263"
integrity sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==

sourcegraph@^25.2.0:
version "25.2.0"
resolved "https://registry.yarnpkg.com/sourcegraph/-/sourcegraph-25.2.0.tgz#7978b3ca154e2703828cd4bd2fdfbc3f7994bbe8"
integrity sha512-2yYJN8DMFrGesDfZvaYfXie86fHl3HtPRZ4XImQ6H4d7HuHHYEkVYxlbrOD4BUgMBsit5oVUPZ9Kspu0676QAA==
sourcegraph@^25.3.0:
version "25.3.0"
resolved "https://registry.yarnpkg.com/sourcegraph/-/sourcegraph-25.3.0.tgz#0ad58f40a6fb286ddaf5f441c28b2c1241098e94"
integrity sha512-677uVs3rq1gVeiKTZ6wrlq862dUIn02ZmEgxoPTfFMI3tlJWhdgFZOg2GpFEgFRoB1ct7rMMlRrI1cEQdB7Rkg==

spawn-error-forwarder@~1.0.0:
version "1.0.0"
Expand Down

0 comments on commit 9c72367

Please sign in to comment.