diff options
Diffstat (limited to 'test/conrefs.js')
-rw-r--r-- | test/conrefs.js | 31 |
1 files changed, 28 insertions, 3 deletions
diff --git a/test/conrefs.js b/test/conrefs.js index 8d6a181..7e044f5 100644 --- a/test/conrefs.js +++ b/test/conrefs.js @@ -26,15 +26,40 @@ 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 from git", + 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 } |