Skip to content

Commit

Permalink
test(post): reset highlight status
Browse files Browse the repository at this point in the history
  • Loading branch information
SukkaW committed Jun 15, 2020
1 parent 21d50ea commit c5113e0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/scripts/hexo/post.js
Original file line number Diff line number Diff line change
Expand Up @@ -1046,5 +1046,8 @@ describe('Post', () => {
data.content.trim().should.contains(`<pre><code class="sh">${escapeHTML('echo "Hi"')}</code></pre>`);
data.content.trim().should.contains('<script src="//gist.github.com/gist_id.js"></script>');
data.content.trim().should.contains('<script src="//gist.github.com/gist_id_2.js"></script>');

// Re-anable highlight for other tests
hexo.config.highlight.enable = true;
});
});

0 comments on commit c5113e0

Please sign in to comment.