From 86595e38975f902d061df4a1e60783bfb725ad2f Mon Sep 17 00:00:00 2001 From: Christoph Schlosser Date: Fri, 8 Dec 2017 17:22:57 +0100 Subject: Add basic tests --- src/test/MockTextEditorEdit.ts | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 src/test/MockTextEditorEdit.ts (limited to 'src/test/MockTextEditorEdit.ts') 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."); + } + +} -- cgit v1.2.3