blob: 635423cc68a67f5d6aae84b8add1e9fc0a16b3df (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
var Promise = require('../../utils/promise');
var Plugin = require('../../models/plugin');
var validatePlugin = require('../validatePlugin');
describe('validatePlugin', function() {
it('must not validate a not loaded plugin', function() {
var plugin = Plugin.createFromString('test');
return validatePlugin(plugin)
.then(function() {
throw new Error('Should not be validate');
}, function(err) {
return Promise();
});
});
});
|