Fix up failing JS unit test from a recent change from V8 hackathon to the query builder syntax (was curly's on new lines)

This commit is contained in:
Warren
2018-07-31 11:18:24 +01:00
parent 02b6b77d38
commit 80db20fdfb

View File

@@ -58,13 +58,14 @@ describe('service: templateHelper', function () {
it('should return the snippet for a query', function () {
var queryExpression = "queryExpression";
var snippet = "\n@{\n" + "\tvar selection = " + queryExpression + ";\n}\n";
snippet += "<ul>\n" +
"\t@foreach(var item in selection){\n" +
"\t\t<li>\n" +
"\t\t\t<a href=\"@item.Url\">@item.Name</a>\n" +
"\t\t</li>\n" +
"\t}\n" +
"</ul>\n\n";
snippet += "<ul>\n" +
"\t@foreach (var item in selection)\n" +
"\t{\n" +
"\t\t<li>\n" +
"\t\t\t<a href=\"@item.Url\">@item.Name</a>\n" +
"\t\t</li>\n" +
"\t}\n" +
"</ul>\n\n";
expect(templateHelper.getQuerySnippet(queryExpression)).toBe(snippet);
});