summaryrefslogtreecommitdiffstats
path: root/test/glossary.js
diff options
context:
space:
mode:
authorAaron O'Mullan <aaron.omullan@friendco.de>2014-08-15 12:09:36 -0700
committerAaron O'Mullan <aaron.omullan@friendco.de>2014-08-15 12:09:36 -0700
commitcbe4e9edec3a1751030ad40a28e25df20fde2b08 (patch)
tree7e4346898ba1d71e8ffef80e252e4935a8f33fa6 /test/glossary.js
parente0aed828e0e2be6df601c41649195f6fc71553c9 (diff)
downloadgitbook-cbe4e9edec3a1751030ad40a28e25df20fde2b08.zip
gitbook-cbe4e9edec3a1751030ad40a28e25df20fde2b08.tar.gz
gitbook-cbe4e9edec3a1751030ad40a28e25df20fde2b08.tar.bz2
Simplify output of glossary parsing to more simple objects
Diffstat (limited to 'test/glossary.js')
-rw-r--r--test/glossary.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/glossary.js b/test/glossary.js
index c60fa45..bf40e16 100644
--- a/test/glossary.js
+++ b/test/glossary.js
@@ -11,4 +11,10 @@ describe('Glossary parsing', function () {
it('should only get heading + paragraph pairs', function() {
assert.equal(LEXED.length, 5);
});
+
+ it('should output simple name/description objects', function() {
+ assert.equal(true, !(LEXED.some(function(e) {
+ return !Boolean(e.name && e.description);
+ })));
+ });
});