summaryrefslogtreecommitdiffstats
path: root/lib/output/modifiers/__tests__
diff options
context:
space:
mode:
authorSamy Pesse <samypesse@gmail.com>2016-05-26 21:10:06 +0200
committerSamy Pesse <samypesse@gmail.com>2016-05-26 21:10:06 +0200
commitb47ebaa9d91ecc0a1a1678eb8da79837a3cfee19 (patch)
treeb0768304482c15b1387a41e9c828e1739bdfc52e /lib/output/modifiers/__tests__
parentecd86ec8778fdf54c5a8e6edef618cde89336641 (diff)
downloadgitbook-b47ebaa9d91ecc0a1a1678eb8da79837a3cfee19.zip
gitbook-b47ebaa9d91ecc0a1a1678eb8da79837a3cfee19.tar.gz
gitbook-b47ebaa9d91ecc0a1a1678eb8da79837a3cfee19.tar.bz2
Use real glossary name when annotating
Diffstat (limited to 'lib/output/modifiers/__tests__')
-rw-r--r--lib/output/modifiers/__tests__/annotateText.js6
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);
});
});