Skip to content

Commit

Permalink
added a test to unhighlight in JHighlighter
Browse files Browse the repository at this point in the history
  • Loading branch information
yasirunilan committed Mar 26, 2017
1 parent 3b12775 commit 27c3f29
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/javascript/highlighter/spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,11 @@ define(['jquery', 'testsRoot/highlighter/spec-setup', 'jasmineJquery'], function
});

it('Should highlight word \'sample\' in sample text at depth 1', function () {
expect($('#text-depth-1').html()).toContain('class="highlight"');;
expect($('#text-depth-1').html()).toContain('class="highlight"');
});

it('Should highlight word \'sample\' in sample text at depth 2', function () {
expect($('#text-depth-2').html()).toContain('class="highlight"');;
expect($('#text-depth-2').html()).toContain('class="highlight"');
});
});

Expand Down Expand Up @@ -86,6 +86,7 @@ define(['jquery', 'testsRoot/highlighter/spec-setup', 'jasmineJquery'], function
});
});


describe('unhighlight with input lying inside a textarea', function () {
beforeAll(function () {
highlighter.unhighlight("textarea");
Expand Down

0 comments on commit 27c3f29

Please sign in to comment.