diff options
author | Samy Pessé <samypesse@gmail.com> | 2016-05-26 22:30:06 +0200 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2016-05-26 22:30:06 +0200 |
commit | 346a18b4446060eeb53a0a697fa82f1d13ba6cd2 (patch) | |
tree | 1fbbc6308a94a9b71321817601690b1121571df7 /lib/output/modifiers/__tests__/annotateText.js | |
parent | 7b915428f7b780e49b641639c6ba7166132ac87c (diff) | |
parent | b32685c698dd9ca8e2a4083b14d2bc9702ca5e83 (diff) | |
download | gitbook-346a18b4446060eeb53a0a697fa82f1d13ba6cd2.zip gitbook-346a18b4446060eeb53a0a697fa82f1d13ba6cd2.tar.gz gitbook-346a18b4446060eeb53a0a697fa82f1d13ba6cd2.tar.bz2 |
Merge pull request #1335 from GitbookIO/fix/1333
Fix #1333: fix invalid URLs for glossary annotations
Diffstat (limited to 'lib/output/modifiers/__tests__/annotateText.js')
-rw-r--r-- | lib/output/modifiers/__tests__/annotateText.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/output/modifiers/__tests__/annotateText.js b/lib/output/modifiers/__tests__/annotateText.js index 40b1e6c..67e7a10 100644 --- a/lib/output/modifiers/__tests__/annotateText.js +++ b/lib/output/modifiers/__tests__/annotateText.js @@ -12,7 +12,7 @@ describe('annotateText', function() { it('should annotate text', function() { var $ = cheerio.load('<p>This is a word, and multiple words</p>'); - annotateText(entries, $); + annotateText(entries, 'GLOSSARY.md', $); var links = $('a'); expect(links.length).toBe(2); @@ -31,14 +31,14 @@ describe('annotateText', function() { it('should not annotate scripts', function() { var $ = cheerio.load('<script>This is a word, and multiple words</script>'); - annotateText(entries, $); + annotateText(entries, 'GLOSSARY.md', $); expect($('a').length).toBe(0); }); it('should not annotate when has class "no-glossary"', function() { var $ = cheerio.load('<p class="no-glossary">This is a word, and multiple words</p>'); - annotateText(entries, $); + annotateText(entries, 'GLOSSARY.md', $); expect($('a').length).toBe(0); }); }); |