Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

43 lines (37 sloc) 0.951 kB
if typeof module != 'undefined' && module.exports
require './spec_helper'
require '../src/transparency'
describe "Transparency", ->
it "cache templates", ->
doc = jQuery(
'<div>
<div class="container">
<div>
<span class="hello"></span>
<span class="world"></span>
</div>
</div>
</div>')
data = [
hello: "Hello"
world: "World!"
,
hello: "Goodbye"
world: "Canada!"
]
expected = jQuery(
'<div>
<div class="container">
<div>
<span class="hello">Hello</span>
<span class="world">World!</span>
</div>
<div>
<span class="hello">Goodbye</span>
<span class="world">Canada!</span>
</div>
</div>
</div>')
doc.find('.container').render(data)
doc.find('.container').render(data)
expect(doc).toBeEqual(expected)
Jump to Line
Something went wrong with that request. Please try again.