From 013b92c3e7b9e4fa4d8dcb53246eaa5d0230b5af Mon Sep 17 00:00:00 2001 From: Tien Nguyen Date: Thu, 6 Aug 2015 16:27:25 -0700 Subject: [PATCH] Use template string to shorten code. --- 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 fd473558b08..ebf1b1d1814 100644 --- a/src/harness/fourslash.ts +++ b/src/harness/fourslash.ts @@ -2172,7 +2172,7 @@ module FourSlash { for (let highlight of highlightSpans) { if (highlight && highlight.textSpan.start === start && ts.textSpanEnd(highlight.textSpan) === end) { if (typeof kind !== "undefined" && highlight.kind !== kind) { - this.raiseError('verifyDocumentHighlightsAtPositionListContains failed - item "kind" value does not match, actual: ' + highlight.kind + ', expected: ' + kind + '.'); + this.raiseError(`verifyDocumentHighlightsAtPositionListContains failed - item "kind" value does not match, actual: ${highlight.kind}, expected: ${kind}.`); } return; }