Very basic poems service test

This commit is contained in:
Vit Brunner
2014-10-12 15:54:53 +02:00
parent 2f30d900d3
commit c2a6f9601e
2 changed files with 7 additions and 0 deletions
+1
View File
@@ -15,6 +15,7 @@ html
script(src="tests/services/reader/markdown.js")
script(src="tests/services/reader/json.js")
script(src="tests/services/transformer.js")
script(src="tests/services/poems.js")
body
div(id="qunit")
@@ -0,0 +1,6 @@
test("poems service has default content", () ->
poems = injector.get("poems")
active = poems.getActive()
equal(active[0].content[0].text, 'Please be patient!')
equal(active[0].content[0].section, 'Loading...')
)