Skip to content

Commit 9c72367

Browse files
authored
feat: add sourcegraph.app.log to stubs (#142)
1 parent af8e6b1 commit 9c72367

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,6 @@
6767
"@types/sinon": "9.0.4",
6868
"rxjs": "^6.5.1",
6969
"sinon": "^9.0.2",
70-
"sourcegraph": "^25.2.0"
70+
"sourcegraph": "^25.3.0"
7171
}
7272
}

src/api.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ export const createStubSourcegraphAPI = () => {
9898
(provider: sourcegraph.FileDecorationProvider) => new Subscription()
9999
),
100100
createStatusBarItemType: () => ({ key: `statusBarItemType${statusBarItemTypeCounter++}` }),
101+
log: sinon.spy((message?: any, ...optionalParameters: any[]) => {}),
101102
},
102103
configuration: Object.assign(configSubject.pipe(mapTo(undefined)), {
103104
get: <C extends object = { [key: string]: any }>(): sourcegraph.Configuration<C> => ({

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6245,10 +6245,10 @@ source-map@^0.6.0, source-map@^0.6.1, source-map@~0.6.1:
62456245
resolved "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz#74722af32e9614e9c287a8d0bbde48b5e2f1a263"
62466246
integrity sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==
62476247

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

62536253
spawn-error-forwarder@~1.0.0:
62546254
version "1.0.0"

0 commit comments

Comments
 (0)