diff options
author | Samy Pessé <samypesse@gmail.com> | 2015-09-15 11:48:18 +0200 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2015-09-15 11:48:18 +0200 |
commit | 87e4ee1eeb9918cbf151407c66b3377014612d5d (patch) | |
tree | ce283acc1495272a66f55132130d00d36e53cc6b /test/conrefs.js | |
parent | 45833eea9ad5fb97ab5e5095e4e4b8e3481c7d2e (diff) | |
download | gitbook-87e4ee1eeb9918cbf151407c66b3377014612d5d.zip gitbook-87e4ee1eeb9918cbf151407c66b3377014612d5d.tar.gz gitbook-87e4ee1eeb9918cbf151407c66b3377014612d5d.tar.bz2 |
Handle absolute file correctly for conrefs
Add test for absolute file for conrefs
Diffstat (limited to 'test/conrefs.js')
-rw-r--r-- | test/conrefs.js | 14 |
1 files changed, 12 insertions, 2 deletions
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 |