summaryrefslogtreecommitdiffstats
path: root/test/plugins.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/plugins.js')
-rw-r--r--test/plugins.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/test/plugins.js b/test/plugins.js
index d10e0b5..6d5b9de 100644
--- a/test/plugins.js
+++ b/test/plugins.js
@@ -1,6 +1,7 @@
var _ = require('lodash');
var should = require('should');
var path = require('path');
+var fs = require('fs');
var Plugin = require('../lib/plugin');
var parsers = require("gitbook-parsers");
@@ -89,7 +90,12 @@ describe('Plugins', function () {
it('should extend books plugins', function() {
var resources = book.plugins.resources("ebook");
- resources["css"].should.have.lengthOf(1);
+
+ // There is resources from highlight plugin and this plugin
+ resources["css"].should.have.lengthOf(2);
+ should.exist(_.find(resources["css"], {
+ path: './resources/test'
+ }));
});
});
});