blob: 3d508399ba11f040c3982f9acb736106cf68dcff (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
jest.autoMockOff();
var Promise = require('../../utils/promise');
var Plugin = require('../../models/plugin');
describe('validatePlugin', function() {
var validatePlugin = require('../validatePlugin');
pit('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();
});
});
});
|