summaryrefslogtreecommitdiffstats
path: root/packages/gitbook-asciidoc/test/glossary.js
diff options
context:
space:
mode:
authorSamy Pessé <samypesse@gmail.com>2015-02-09 17:50:28 +0100
committerSamy Pessé <samypesse@gmail.com>2016-12-22 11:46:18 +0100
commitd59c9e2be10b807b0d3e4bf16cada0e456fa73e7 (patch)
tree43d22ee6bd46badfda5f43ef17b5c58d975d0ca9 /packages/gitbook-asciidoc/test/glossary.js
parent3530e504ba1714b4179719242ade88d8b89e9081 (diff)
downloadgitbook-d59c9e2be10b807b0d3e4bf16cada0e456fa73e7.zip
gitbook-d59c9e2be10b807b0d3e4bf16cada0e456fa73e7.tar.gz
gitbook-d59c9e2be10b807b0d3e4bf16cada0e456fa73e7.tar.bz2
Add tests for toText methods
Diffstat (limited to 'packages/gitbook-asciidoc/test/glossary.js')
-rwxr-xr-xpackages/gitbook-asciidoc/test/glossary.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/packages/gitbook-asciidoc/test/glossary.js b/packages/gitbook-asciidoc/test/glossary.js
index eb26f4a..aab73e1 100755
--- a/packages/gitbook-asciidoc/test/glossary.js
+++ b/packages/gitbook-asciidoc/test/glossary.js
@@ -17,4 +17,9 @@ describe('Glossary parsing', function () {
return !Boolean(e.name && e.description);
})));
});
+
+ it('should correctly convert it to text', function() {
+ var text = glossary.toText(LEXED);
+ assertObjectsEqual(glossary(text), LEXED);
+ });
});