superdesk/superdesk-client-core

View on GitHub
scripts/apps/authoring/widgets/widgets.spec.ts

Summary

Maintainability
A
0 mins
Test Coverage

describe('authoring widgets', () => {
    beforeEach(window.module('superdesk.templates-cache'));

    angular.module('superdesk.apps.authoring.widgets.test', ['superdesk.apps.authoring.widgets'])
        .config((authoringWidgetsProvider) => {
            authoringWidgetsProvider.widget('test', {});
        });

    beforeEach(window.module('superdesk.apps.authoring.widgets.test'));

    it('can register authoring widgets', inject((authoringWidgets) => {
        expect(authoringWidgets.length).toBe(1);
    }));
});