summaryrefslogtreecommitdiffstats
path: root/test/plugins.js
diff options
context:
space:
mode:
authorSamy Pesse <samypesse@gmail.com>2015-09-14 11:28:14 +0200
committerSamy Pesse <samypesse@gmail.com>2015-09-14 11:28:14 +0200
commitfa4e234bab15db4b0a8a0a13f041ef5869a2458b (patch)
tree243816b5b7a243915b44a590cb40e5ce4c731b21 /test/plugins.js
parent35c4179ca12a0287279ced0535f11237cdf606ec (diff)
downloadgitbook-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.js26
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'
- }
- });
- });
- })
- });
});