diff options
Diffstat (limited to 'test/plugins.js')
-rw-r--r-- | test/plugins.js | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/plugins.js b/test/plugins.js index f75af34..cd46246 100644 --- a/test/plugins.js +++ b/test/plugins.js @@ -35,4 +35,19 @@ describe('Plugins', function () { done); }); }); + + describe('filters', function() { + var plugin = new Plugin(books[0], "filters"); + plugin.load("./filters", PLUGINS_ROOT); + + it('should valid a plugin', function() { + assert(plugin.isValid()); + }); + + it('should return a map of filters', function() { + var filters = plugin.getFilters(); + assert.equal(_.size(filters), 1); + assert(filters["hello"]); + }); + }); }); |