summaryrefslogtreecommitdiffstats
path: root/src/test/MockTextEditorEdit.ts
diff options
context:
space:
mode:
authorChristoph Schlosser <thisisagap@gmail.com>2017-12-08 17:22:57 +0100
committerChristoph Schlosser <christophschlosser@users.noreply.github.com>2017-12-16 21:48:09 +0100
commit86595e38975f902d061df4a1e60783bfb725ad2f (patch)
treed51eca8c52cba6bac8f3e1d13fcd53cee3d5d7ef /src/test/MockTextEditorEdit.ts
parentab3a71d958273915512f5da948ef73c8b5ac26d8 (diff)
downloaddoxdocgen-86595e38975f902d061df4a1e60783bfb725ad2f.tar.gz
Add basic tests
Diffstat (limited to 'src/test/MockTextEditorEdit.ts')
-rw-r--r--src/test/MockTextEditorEdit.ts18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/test/MockTextEditorEdit.ts b/src/test/MockTextEditorEdit.ts
new file mode 100644
index 0000000..e751182
--- /dev/null
+++ b/src/test/MockTextEditorEdit.ts
@@ -0,0 +1,18 @@
+import * as vscode from "vscode";
+
+export default class MockTextEditorEdit implements vscode.TextEditorEdit {
+ public text: string;
+ public replace(location: vscode.Position | vscode.Range | vscode.Selection, value: string): void {
+ this.text = value;
+ }
+ public insert(location: vscode.Position, value: string): void {
+ throw new Error("Method not implemented.");
+ }
+ public delete(location: vscode.Range | vscode.Selection): void {
+ throw new Error("Method not implemented.");
+ }
+ public setEndOfLine(endOfLine: vscode.EndOfLine): void {
+ throw new Error("Method not implemented.");
+ }
+
+}