diff options
author | Samy Pessé <samypesse@gmail.com> | 2014-04-19 17:28:44 +0200 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2014-04-19 17:28:44 +0200 |
commit | 8be8b825eebc95926e7d7c2596f8b789dba0f799 (patch) | |
tree | 7077d1363a95a9e8eb3b00f5a87420a2ce9dcab2 /test/plugin.js | |
parent | 56eb4a2897ae78be35db33172376f9901e23546e (diff) | |
download | gitbook-8be8b825eebc95926e7d7c2596f8b789dba0f799.zip gitbook-8be8b825eebc95926e7d7c2596f8b789dba0f799.tar.gz gitbook-8be8b825eebc95926e7d7c2596f8b789dba0f799.tar.bz2 |
Add base loading of default addons
Add mixpanel as default addon
Diffstat (limited to 'test/plugin.js')
-rw-r--r-- | test/plugin.js | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/test/plugin.js b/test/plugin.js index 62fc039..b4e2102 100644 --- a/test/plugin.js +++ b/test/plugin.js @@ -4,10 +4,29 @@ var assert = require('assert'); var Plugin = require('../').generate.Plugin; -describe('Plugin loading', function () { +describe('Plugin validation', function () { var plugin = new Plugin("gitbook-plugin"); it('should be valid', function() { assert(plugin.isValid()); }); }); + +describe('Plugin defaults loading', function () { + var ret = true; + + beforeEach(function(done){ + Plugin.fromList(Plugin.defaults) + .then(function(_r) { + ret = _r; + }, function(err) { + ret = null; + }) + .fin(done); + }); + + + it('should load defaults addons', function() { + assert(ret != null); + }); +}); |