Skip to content

Commit 0df9410

Browse files
authored
feat: add support for getText (#114)
1 parent b7293a2 commit 0df9410

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
- run: yarn build
2020
- run: yarn eslint
2121
- run: yarn test
22-
- run: nyc report --reporter json
22+
- run: yarn nyc report --reporter json
2323
- run: 'bash <(curl -s https://codecov.io/bash)'
2424
- name: release
2525
if: github.event_name == 'push' && github.ref == 'refs/heads/master'

src/textDocument.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ export const createStubTextDocument = (init: Pick<sourcegraph.TextDocument, 'lan
1717
offsetAt: sinon.spy<(position: sourcegraph.Position) => number>(notImplemented),
1818
positionAt: sinon.spy<(offset: number) => sourcegraph.Position>(notImplemented),
1919
validateRange: sinon.spy<(range: sourcegraph.Range) => sourcegraph.Range>(notImplemented),
20+
getText: sinon.spy<(range?: sourcegraph.Range) => string | undefined>(notImplemented),
2021
})
2122
return textDocument
2223
}

0 commit comments

Comments
 (0)