Fix failure in tests.

This commit is contained in:
Mohamed Hegazy
2014-09-24 13:01:21 -07:00
parent ea8ae93a41
commit 1fe4a52d7c

View File

@@ -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);