Skip to content

Commit 2883e8a

Browse files
committed
Fixed test
1 parent a52d0c3 commit 2883e8a

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

src/test/suite/completion.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { SelectorCompletionItemProvider } from "../../completion";
33
import { MockCancellationToken, MockCompletionContext, MockDocument } from "./mocks";
44
import { CompletionItem, Position, Uri } from "vscode";
55

6-
suite("ClassCompletionItemProvider Test Suite", () => {
6+
suite("SelectorCompletionItemProvider Test Suite", () => {
77

88
const position = new Position(0, 0);
99
const token = new MockCancellationToken(false);

src/test/suite/extension.test.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
import * as assert from "assert";
22
import { CompletionList, Position, commands, workspace } from "vscode";
33

4+
function sleep(duration: number): Thenable<void> {
5+
return new Promise(resolve => setTimeout(resolve, duration));
6+
}
7+
48
suite("Extension Test Suite", () => {
59

610
test("Completes for html", async () => {
@@ -9,6 +13,8 @@ suite("Extension Test Suite", () => {
913
content: "<style>.some{}</style>\n<a class='some'></a>"
1014
});
1115

16+
await sleep(1000);
17+
1218
const list = await commands.executeCommand<CompletionList>(
1319
"vscode.executeCompletionItemProvider",
1420
document.uri,

0 commit comments

Comments
 (0)