mirror of
https://github.com/Hopiu/wagtail.git
synced 2026-05-15 02:33:13 +00:00
15 lines
337 B
JavaScript
15 lines
337 B
JavaScript
import registry from './registry';
|
|
|
|
describe('registry', () => {
|
|
it('works', () => {
|
|
const plugin = {
|
|
type: 'TEST',
|
|
source: null,
|
|
decorator: null,
|
|
};
|
|
|
|
expect(registry.getPlugin('TEST')).not.toBeDefined();
|
|
registry.registerPlugin(plugin);
|
|
expect(registry.getPlugin('TEST')).toBe(plugin);
|
|
});
|
|
});
|