Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Update test/jasmine-test/spec/coreTests.js

  • Loading branch information...
commit facbe6b44e21d77fd352b76a08cf4753b5c0d6a3 1 parent 2dd819b
@vybs vybs authored
Showing with 10 additions and 10 deletions.
  1. +10 −10 test/jasmine-test/spec/coreTests.js
View
20 test/jasmine-test/spec/coreTests.js
@@ -1,13 +1,6 @@
var coreTests = [
{
- name: "syntax error",
- source: "RRR {##}",
- context: { name: "Mick", count: 30 },
- error: 'Expected buffer, comment, partial, reference, section or special but "{" found. At line : 1, column : 5',
- message: "should test that the error message shows line and column."
- },
- {
- name: "intro",
+ name: "Try me",
source: "{#stream}{#delay}{.}{/delay}{/stream}",
context: (function(){
var d = 1;
@@ -28,7 +21,7 @@ var coreTests = [
message: "should test the stream tag"
},
{
- name: "plain",
+ name: "Hello World",
source: "Hello World!",
context: {},
expected: "Hello World!",
@@ -70,6 +63,13 @@ var coreTests = [
message: "should test for numeric zero in the context, prints the numeric zero"
},
{
+ name: "Dust syntax error",
+ source: "RRR {##}",
+ context: { name: "Mick", count: 30 },
+ error: 'Expected buffer, comment, partial, reference, section or special but "{" found. At line : 1, column : 5',
+ message: "should test that the error message shows line and column."
+ },
+ {
name: "emptyString context is treated as empty",
source: "{emptyString}",
context: { "emptyString": "" },
@@ -964,7 +964,7 @@ var coreTests = [
message: "using dash should be allowed in partial's params"
},
{
- name: "Use dash in loop",
+ name: "support dash in # sections",
source: "{#first-names}{name}{/first-names}",
context: { "first-names": [ { name: "Moe" }, { name: "Larry" }, { name: "Curly" } ] },
expected: "MoeLarryCurly",
Please sign in to comment.
Something went wrong with that request. Please try again.