summaryrefslogtreecommitdiffstats
path: root/test/readme.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/readme.js')
-rw-r--r--test/readme.js28
1 files changed, 0 insertions, 28 deletions
diff --git a/test/readme.js b/test/readme.js
deleted file mode 100644
index 811591c..0000000
--- a/test/readme.js
+++ /dev/null
@@ -1,28 +0,0 @@
-var fs = require('fs');
-var path = require('path');
-var assert = require('assert');
-
-var readme = require('../').parse.readme;
-
-
-var CONTENT = fs.readFileSync(path.join(__dirname, './fixtures/README.md'), 'utf8');
-var LEXED = readme(CONTENT);
-
-describe('Readme parsing', function () {
-
- it('should contain a title', function() {
- assert(LEXED.title);
- });
-
- it('should contain a description', function() {
- assert(LEXED.description);
- });
-
- it('should extract the right title', function() {
- assert.equal(LEXED.title, "This is the title");
- });
-
- it('should extract the right description', function() {
- assert.equal(LEXED.description, "This is the book description.");
- });
-});