Skip to content
This repository was archived by the owner on Feb 22, 2020. It is now read-only.

Commit 4b0bc28

Browse files
renovate[bot]felixfbecker
authored andcommitted
chore(deps): update dependency @sourcegraph/extension-api-stubs to ^0.2.0 (#33)
* chore(deps): update dependency @sourcegraph/extension-api-stubs to ^0.2.0 * Use new APIs
1 parent 8663ae2 commit 4b0bc28

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
"devDependencies": {
5454
"@commitlint/cli": "^7.2.1",
5555
"@commitlint/config-conventional": "^7.1.2",
56-
"@sourcegraph/extension-api-stubs": "^0.1.1",
56+
"@sourcegraph/extension-api-stubs": "^0.2.0",
5757
"@sourcegraph/prettierrc": "^2.2.0",
5858
"@sourcegraph/tsconfig": "^4.0.0",
5959
"@sourcegraph/tslint-config": "^13.0.0",

src/test/integration.test.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { createStubSourcegraphAPI } from '@sourcegraph/extension-api-stubs'
1+
import { createStubSourcegraphAPI, createStubTextDocument } from '@sourcegraph/extension-api-stubs'
22
import mock from 'mock-require'
33
const stubAPI = createStubSourcegraphAPI()
44
// For modules importing Range/Location/Position/URI/etc
@@ -124,11 +124,11 @@ describe('register()', () => {
124124
const createConnection = stubTransport(server)
125125

126126
stubAPI.workspace.textDocuments = [
127-
{
127+
createStubTextDocument({
128128
uri: new URL('foo.ts', repoRoot).href,
129129
languageId: 'typescript',
130130
text: 'console.log("Hello world")',
131-
} as sourcegraph.TextDocument, // TODO missing methods, add createStubTextDocument() to @sourcegraph/extension-api-stubs
131+
}),
132132
]
133133
stubAPI.workspace.roots = [{ uri: repoRoot }]
134134

@@ -203,11 +203,11 @@ describe('register()', () => {
203203
const createConnection = stubTransport(server)
204204

205205
stubAPI.workspace.textDocuments = [
206-
{
206+
createStubTextDocument({
207207
uri: new URL('foo.ts', repoRoot).href,
208208
languageId: 'typescript',
209209
text: 'console.log("Hello world")',
210-
} as sourcegraph.TextDocument,
210+
}),
211211
]
212212
stubAPI.workspace.roots = [{ uri: repoRoot }]
213213

@@ -276,11 +276,11 @@ describe('register()', () => {
276276
const createConnection = stubTransport(server)
277277

278278
stubAPI.workspace.textDocuments = [
279-
{
279+
createStubTextDocument({
280280
uri: repoRoot + '#foo.ts',
281281
languageId: 'typescript',
282282
text: 'console.log("Hello world")',
283-
} as sourcegraph.TextDocument,
283+
}),
284284
]
285285
stubAPI.workspace.roots = [{ uri: repoRoot }]
286286

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -411,10 +411,10 @@
411411
dependencies:
412412
"@sourcegraph/extension-api-types" "^2.0.0"
413413

414-
"@sourcegraph/extension-api-stubs@^0.1.1":
415-
version "0.1.1"
416-
resolved "https://registry.npmjs.org/@sourcegraph/extension-api-stubs/-/extension-api-stubs-0.1.1.tgz#8e161adec70fd5b7a78ace649a456b99f9c78977"
417-
integrity sha512-TMVbHFUM/BF9odoQaiUBDbhax7joqUutkU22DI/KdtW9wz5O1nWT0oJr1wdv0xvYRDvKGG/gOXypd2ZC+aNE2A==
414+
"@sourcegraph/extension-api-stubs@^0.2.0":
415+
version "0.2.0"
416+
resolved "https://registry.yarnpkg.com/@sourcegraph/extension-api-stubs/-/extension-api-stubs-0.2.0.tgz#4deee465d96cb49c7790da95fa28aefbdf995177"
417+
integrity sha512-EhI65jZnDB+/pnRHrwzlFq7JN9NuabJBiZoBmAMghnqtbVD/5pEqm9XJD0LPCg/Uc3FEIVTkVXjNylGn4s0JNA==
418418
dependencies:
419419
"@sourcegraph/extension-api-classes" "^1.0.2"
420420
"@types/sinon" "7.0.11"

0 commit comments

Comments
 (0)