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:
@@ -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);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user