Move source/documents/* to source/

This commit is contained in:
Vit Brunner
2014-10-29 12:19:07 +01:00
parent 6c4d6bda84
commit f4b77f6215
31 changed files with 1 additions and 1 deletions
@@ -0,0 +1,32 @@
reader = {}
module "json reader", {
setup: () ->
reader = injector.get "jsonReader"
}
test "loads poem", () ->
deepEqual reader("""
{
meta: {
Title: "Test leading text"
},
content: [
"<p><strong>This</strong> is leading text.</p>",
{ section: "I", text: "<p>First section.</p>" },
{ section: "II", text: "<p>Second section.</p>" },
{ text: "<p>Another section.</p>" },
],
}
"""),
{
meta: {
Title: "Test leading text"
}
content: [
{ section: "", text: "<p><strong>This</strong> is leading text.</p>" }
{ section: "I", text: "<p>First section.</p>" }
{ section: "II", text: "<p>Second section.</p>" }
{ section: "", text: "<p>Another section.</p>" }
]
}