From 1fe4a52d7c84a0b5d56e61cd3883eeb513af1606 Mon Sep 17 00:00:00 2001 From: Mohamed Hegazy Date: Wed, 24 Sep 2014 13:01:21 -0700 Subject: [PATCH] Fix failure in tests. --- src/harness/fourslash.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/harness/fourslash.ts b/src/harness/fourslash.ts index 2e94e39e71d..124d8e6394e 100644 --- a/src/harness/fourslash.ts +++ b/src/harness/fourslash.ts @@ -1634,7 +1634,7 @@ module FourSlash { public verifyTodoComments(descriptors: string[], spans: TextSpan[]) { var actual = this.languageService.getTodoComments(this.activeFile.fileName, - descriptors.map(d => new ts.TodoCommentDescriptor(d, 0))); + descriptors.map(d => { return { text: d, priority: 0 }; })); if (actual.length !== spans.length) { throw new Error('verifyTodoComments failed - expected total spans to be ' + spans.length + ', but was ' + actual.length);