summaryrefslogtreecommitdiffstats
path: root/packages/gitbook-asciidoc/test/summary.js
diff options
context:
space:
mode:
Diffstat (limited to 'packages/gitbook-asciidoc/test/summary.js')
-rwxr-xr-xpackages/gitbook-asciidoc/test/summary.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/packages/gitbook-asciidoc/test/summary.js b/packages/gitbook-asciidoc/test/summary.js
index 1c444ce..d363f3f 100755
--- a/packages/gitbook-asciidoc/test/summary.js
+++ b/packages/gitbook-asciidoc/test/summary.js
@@ -37,4 +37,9 @@ describe('Summary parsing', function () {
assert.equal(LEXED.chapters[1].path,'chapter-2/README.adoc');
assert.equal(LEXED.chapters[2].path,'chapter-3/README.adoc');
});
+
+ it('should correctly convert it to text', function() {
+ var text = summary.toText(LEXED);
+ assertObjectsEqual(summary(text), LEXED);
+ });
});