Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
brainfood
/
rivets
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
a4800c6e
authored
2013-06-24 21:24:47 -0700
by
Michael Richards
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Update the Rivets.TextTemplateParser specs to pass in a set of delimiters. [#181]
1 parent
fa71dc4c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
spec/rivets/text_template_parser.js
spec/rivets/text_template_parser.js
View file @
a4800c6
...
...
@@ -13,7 +13,7 @@ describe("Rivets.TextTemplateParser", function() {
{
type
:
0
,
value
:
" unread messages."
}
]
results
=
Rivets
.
TextTemplateParser
.
parse
(
template
)
results
=
Rivets
.
TextTemplateParser
.
parse
(
template
,
[
'{{'
,
'}}'
]
)
expect
(
results
.
length
).
toBe
(
5
)
for
(
i
=
0
;
i
<
results
.
length
;
i
++
)
{
...
...
@@ -27,7 +27,7 @@ describe("Rivets.TextTemplateParser", function() {
template
=
"Hello World!"
expected
=
[{
type
:
0
,
value
:
"Hello World!"
}]
results
=
Rivets
.
TextTemplateParser
.
parse
(
template
)
results
=
Rivets
.
TextTemplateParser
.
parse
(
template
,
[
'{{'
,
'}}'
]
)
expect
(
results
.
length
).
toBe
(
1
)
for
(
i
=
0
;
i
<
results
.
length
;
i
++
)
{
...
...
@@ -42,7 +42,7 @@ describe("Rivets.TextTemplateParser", function() {
template
=
"{{ user.name }}"
expected
=
[{
type
:
1
,
value
:
"user.name"
}]
results
=
Rivets
.
TextTemplateParser
.
parse
(
template
)
results
=
Rivets
.
TextTemplateParser
.
parse
(
template
,
[
'{{'
,
'}}'
]
)
expect
(
results
.
length
).
toBe
(
1
)
for
(
i
=
0
;
i
<
results
.
length
;
i
++
)
{
...
...
Please
register
or
sign in
to post a comment