diff options
author | Samy Pesse <samypesse@gmail.com> | 2015-09-14 11:28:14 +0200 |
---|---|---|
committer | Samy Pesse <samypesse@gmail.com> | 2015-09-14 11:28:14 +0200 |
commit | fa4e234bab15db4b0a8a0a13f041ef5869a2458b (patch) | |
tree | 243816b5b7a243915b44a590cb40e5ce4c731b21 /test/plugins.js | |
parent | 35c4179ca12a0287279ced0535f11237cdf606ec (diff) | |
download | gitbook-fa4e234bab15db4b0a8a0a13f041ef5869a2458b.zip gitbook-fa4e234bab15db4b0a8a0a13f041ef5869a2458b.tar.gz gitbook-fa4e234bab15db4b0a8a0a13f041ef5869a2458b.tar.bz2 |
Add base test for extending code highlighting
Diffstat (limited to 'test/plugins.js')
-rw-r--r-- | test/plugins.js | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/test/plugins.js b/test/plugins.js index a81110c..cc9c8e6 100644 --- a/test/plugins.js +++ b/test/plugins.js @@ -235,31 +235,5 @@ describe('Plugins', function () { }); }); }); - - describe('Replace code highlighting', function() { - it('should correctly replace highlighting', function() { - return books.generate('basic', 'website', { - before: function(book) { - var plugin = new Plugin(book, "blocks"); - plugin.load("./highlight", PLUGINS_ROOT); - - return book.plugins.load(plugin); - } - }) - .then(function() { - var PAGE = fs.readFileSync( - path.join(book.options.output, "index.html"), - { encoding: "utf-8" } - ); - - PAGE.should.be.html({ - "code": { - count: 1, - text: 'code__test\n__code' - } - }); - }); - }) - }); }); |