summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/books/conrefs/README.md5
-rw-r--r--test/conrefs.js14
2 files changed, 15 insertions, 4 deletions
diff --git a/test/books/conrefs/README.md b/test/books/conrefs/README.md
index 7f56eed..cf15b87 100644
--- a/test/books/conrefs/README.md
+++ b/test/books/conrefs/README.md
@@ -3,8 +3,9 @@
### Relative
<p id="t1">{% include "./hello.md" %}</p>
+<p id="t2">{% include "/hello.md" %}</p>
### Git
-<p id="t2">{% include "git+https://gist.github.com/69ea4542e4c8967d2fa7.git/test.md" %}</p>
-<p id="t3">{% include "git+https://gist.github.com/69ea4542e4c8967d2fa7.git/test2.md" %}</p>
+<p id="t3">{% include "git+https://gist.github.com/69ea4542e4c8967d2fa7.git/test.md" %}</p>
+<p id="t4">{% include "git+https://gist.github.com/69ea4542e4c8967d2fa7.git/test2.md" %}</p>
diff --git a/test/conrefs.js b/test/conrefs.js
index 8d6a181..281fb1c 100644
--- a/test/conrefs.js
+++ b/test/conrefs.js
@@ -26,14 +26,24 @@ describe('ConRefs', function () {
});
});
- it('should handle git references', function() {
+ 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 handle git references', function() {
+ readme.should.be.html({
+ ".page-inner p#t3": {
+ count: 1,
text: "Hello from git",
trim: true
},
- ".page-inner p#t3": {
+ ".page-inner p#t4": {
count: 1,
text: "First Hello. Hello from git",
trim: true