diff options
Diffstat (limited to 'test/glossary.js')
-rw-r--r-- | test/glossary.js | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/test/glossary.js b/test/glossary.js deleted file mode 100644 index bf40e16..0000000 --- a/test/glossary.js +++ /dev/null @@ -1,20 +0,0 @@ -var fs = require('fs'); -var path = require('path'); -var assert = require('assert'); - -var glossary = require('../').parse.glossary; - -var CONTENT = fs.readFileSync(path.join(__dirname, './fixtures/GLOSSARY.md'), 'utf8'); -var LEXED = glossary(CONTENT); - -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); - }))); - }); -}); |