summaryrefslogtreecommitdiffstats
path: root/test/glossary.js
diff options
context:
space:
mode:
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);
+ })));
+ });
});