Skip to content

Commit 02b0e11

Browse files
committed
Add a test for table range prettyfier.
1 parent 80293db commit 02b0e11

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

test/tableRangePrettyfier.test.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import * as assert from 'assert';
2+
import * as vscode from 'vscode';
3+
import * as mockVsCode from "./mockVsCodeClasses";
4+
import { TableRangePrettyfier } from "../src/tableRangePrettyfier";
5+
6+
suite("TableRangePrettyfier tests", () => {
7+
8+
test("provideDocumentRangeFormattingEdits() whole document selection returns empty text edits", () => {
9+
const trp = new TableRangePrettyfier();
10+
const textDoc = new mockVsCode.MockMarkdownTextDocument("hello world");
11+
const textEdits = trp.provideDocumentRangeFormattingEdits(textDoc, textDoc.getFullRange(), null, null);
12+
13+
assert.equal(textEdits.length, 0);
14+
});
15+
});

0 commit comments

Comments
 (0)