summaryrefslogtreecommitdiffstats
path: root/packages/gitbook-asciidoc/test/langs.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/langs.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/langs.js')
-rwxr-xr-xpackages/gitbook-asciidoc/test/langs.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/packages/gitbook-asciidoc/test/langs.js b/packages/gitbook-asciidoc/test/langs.js
index 9e50965..178c3cc 100755
--- a/packages/gitbook-asciidoc/test/langs.js
+++ b/packages/gitbook-asciidoc/test/langs.js
@@ -15,4 +15,9 @@ describe('Languages parsing', function () {
assert.equal(LEXED[1].path,'fr/');
assert.equal(LEXED[1].title,'French');
});
+
+ it('should correctly convert it to text', function() {
+ var text = langs.toText(LEXED);
+ assertObjectsEqual(langs(text), LEXED);
+ });
});