diff options
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); }); }); |