mirror of
https://github.com/GitbookIO/gitbook.git
synced 2026-09-18 00:25:07 +00:00
8be8b825ee
Add mixpanel as default addon
33 lines
691 B
JavaScript
33 lines
691 B
JavaScript
var fs = require('fs');
|
|
var path = require('path');
|
|
var assert = require('assert');
|
|
|
|
var Plugin = require('../').generate.Plugin;
|
|
|
|
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);
|
|
});
|
|
});
|