summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorSamy Pessé <samypesse@gmail.com>2014-10-13 10:57:47 +0200
committerSamy Pessé <samypesse@gmail.com>2014-10-13 10:57:47 +0200
commited6b29c1a474701bb2e4d19e6dce1e714eec939f (patch)
tree20ff68dac876ecb985bcf90ef336ae0c7d256901 /test
parent36785120b1055f65f77361e0529d5d765a8581d1 (diff)
downloadgitbook-ed6b29c1a474701bb2e4d19e6dce1e714eec939f.zip
gitbook-ed6b29c1a474701bb2e4d19e6dce1e714eec939f.tar.gz
gitbook-ed6b29c1a474701bb2e4d19e6dce1e714eec939f.tar.bz2
Adapt tests
Diffstat (limited to 'test')
-rw-r--r--test/page.js28
1 files changed, 0 insertions, 28 deletions
diff --git a/test/page.js b/test/page.js
index 36d521a..42243d8 100644
--- a/test/page.js
+++ b/test/page.js
@@ -78,19 +78,6 @@ describe('Page parsing', function() {
describe('Relative links', function() {
- it('should be resolved to their GitHub counterparts', function() {
- var LEXED = loadPage('GITHUB_LINKS', {
- // GitHub repo ID
- repo: 'GitBookIO/javascript',
-
- // Imaginary folder of markdown file
- dir: 'course',
- outdir: './'
- });
-
- assert(LEXED[0].content.indexOf('https://github.com/GitBookIO/javascript/blob/src/something.cpp') !== -1);
- });
-
it('should replace link to .md by link to .html', function() {
var LEXED = loadPage('MARKDOWN_LINKS', {
// GitHub repo ID
@@ -104,21 +91,6 @@ describe('Relative links', function() {
assert(LEXED[0].content.indexOf('test.html') !== -1);
assert(LEXED[0].content.indexOf('../before.html') !== -1);
});
-
- it('should replace link to .md by link to page in format single page', function() {
- var LEXED = loadPage('MARKDOWN_LINKS', {
- // GitHub repo ID
- repo: 'GitBookIO/javascript',
-
- // Imaginary folder of markdown file
- dir: 'course',
- outdir: './',
- singleFile: true
- });
-
- assert(LEXED[0].content.indexOf('#course/test.md') !== -1);
- assert(LEXED[0].content.indexOf('#before.md') !== -1);
- });
});
describe('Relative images', function() {