summaryrefslogtreecommitdiffstats
path: root/test/readme.js
diff options
context:
space:
mode:
authorSamy Pessé <samypesse@gmail.com>2016-01-28 17:35:32 +0100
committerSamy Pessé <samypesse@gmail.com>2016-01-28 17:35:32 +0100
commit461ef2c68e9086bd77f0a25d57956ebf60308f7c (patch)
treec0e8814e3c57ea5bf21526acc3a7e9b1c925576a /test/readme.js
parent46efdacd6d3d5c7560d8f956e2339c36157f7c89 (diff)
downloadgitbook-461ef2c68e9086bd77f0a25d57956ebf60308f7c.zip
gitbook-461ef2c68e9086bd77f0a25d57956ebf60308f7c.tar.gz
gitbook-461ef2c68e9086bd77f0a25d57956ebf60308f7c.tar.bz2
Add unit tests for langs
Diffstat (limited to 'test/readme.js')
-rw-r--r--test/readme.js47
1 files changed, 0 insertions, 47 deletions
diff --git a/test/readme.js b/test/readme.js
deleted file mode 100644
index fd084cb..0000000
--- a/test/readme.js
+++ /dev/null
@@ -1,47 +0,0 @@
-var mock = require('./mock');
-
-describe('Readme', function() {
-
- describe('Parsing', function() {
- it('should parse empty readme', function() {
- return mock.setupDefaultBook({
- 'README.md': ''
- })
- .then(function(book) {
- return book.prepareConfig()
-
- .then(function() {
- return book.readme.load();
- });
- });
- });
-
- it('should parse readme', function() {
- return mock.setupDefaultBook({
- 'README.md': '# Hello World\nThis is my book'
- })
- .then(function(book) {
- return book.readme.load()
- .then(function() {
- book.readme.title.should.equal('Hello World');
- book.readme.description.should.equal('This is my book');
- });
- });
- });
-
- it('should parse AsciiDoc readme', function() {
- return mock.setupBook({
- 'README.adoc': '# Hello World\n\nThis is my book\n'
- })
- .then(function(book) {
- return book.readme.load()
- .then(function() {
- book.readme.title.should.equal('Hello World');
- book.readme.description.should.equal('This is my book');
- });
- });
- });
- });
-
-});
-