summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/books/conrefs/README.md1
-rw-r--r--test/conrefs.js19
2 files changed, 18 insertions, 2 deletions
diff --git a/test/books/conrefs/README.md b/test/books/conrefs/README.md
index cf15b87..804a77a 100644
--- a/test/books/conrefs/README.md
+++ b/test/books/conrefs/README.md
@@ -9,3 +9,4 @@
<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>
+<p id="t5">{% include "git+https://gist.github.com/69ea4542e4c8967d2fa7.git/test3.md" %}</p>
diff --git a/test/conrefs.js b/test/conrefs.js
index 281fb1c..7e044f5 100644
--- a/test/conrefs.js
+++ b/test/conrefs.js
@@ -36,13 +36,18 @@ describe('ConRefs', function () {
});
});
- it('should handle git references', function() {
+ 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",
@@ -50,4 +55,14 @@ describe('ConRefs', function () {
}
});
});
+
+ 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
+ }
+ });
+ });
});