@emdaer/core
Version:
emdaer core
16 lines (13 loc) • 416 B
JavaScript
const EmdaerError = require('./EmdaerError');
const { NO_PLUGIN } = require('../errors');
const resolvePlugin = require('./resolvePlugin');
describe('resolvePlugin', () => {
test('throws when specified plugin is not available', () => {
expect(() => {
resolvePlugin('not-a-thing');
}).toThrow(NO_PLUGIN);
expect(() => {
resolvePlugin('not-a-thing');
}).toThrow(EmdaerError);
});
});