summaryrefslogtreecommitdiffstats
path: root/test/conrefs.js
diff options
context:
space:
mode:
authorSamy Pessé <samypesse@gmail.com>2016-01-22 21:04:36 +0100
committerSamy Pessé <samypesse@gmail.com>2016-01-22 21:04:36 +0100
commit877f2e477b010f9f37a9044606f110a90f077680 (patch)
tree5cd61cf3b00ba10dc6110535ed9fdf67d8baba72 /test/conrefs.js
parentc8e2fc0e57d223c01a51d6ee186fc1662cd74d13 (diff)
downloadgitbook-877f2e477b010f9f37a9044606f110a90f077680.zip
gitbook-877f2e477b010f9f37a9044606f110a90f077680.tar.gz
gitbook-877f2e477b010f9f37a9044606f110a90f077680.tar.bz2
Start rewrite
Diffstat (limited to 'test/conrefs.js')
-rw-r--r--test/conrefs.js68
1 files changed, 0 insertions, 68 deletions
diff --git a/test/conrefs.js b/test/conrefs.js
deleted file mode 100644
index 32e4058..0000000
--- a/test/conrefs.js
+++ /dev/null
@@ -1,68 +0,0 @@
-var fs = require('fs');
-var path = require('path');
-
-describe('ConRefs', function () {
- var book, readme;
-
- before(function() {
- return books.generate('conrefs', 'website')
- .then(function(_book) {
- book = _book;
-
- readme = fs.readFileSync(
- path.join(book.options.output, 'index.html'),
- { encoding: 'utf-8' }
- );
- });
- });
-
- it('should handle local references', function() {
- readme.should.be.html({
- '.page-inner p#t1': {
- count: 1,
- text: 'Hello World',
- trim: true
- }
- });
- });
-
- it('should handle local references with absolute paths', function() {
- readme.should.be.html({
- '.page-inner p#t2': {
- count: 1,
- text: 'Hello World',
- trim: true
- }
- });
- });
-
- it('should correctly include file from git reference', function() {
- readme.should.be.html({
- '.page-inner p#t3': {
- count: 1,
- text: 'Hello from git',
- trim: true
- }
- });
- });
-
- it('should correctly handle deep include in git reference', function() {
- readme.should.be.html({
- '.page-inner p#t4': {
- count: 1,
- text: 'First Hello. Hello from git',
- trim: true
- }
- });
- });
-
- it('should correctly handle absolute include in git reference', function() {
- readme.should.be.html({
- '.page-inner p#t5': {
- count: 1,
- text: 'First Hello. Hello from git',
- trim: true
- }
- });
- });
-});