storybook/lib/ui/src/__tests__/index.test.ts
Valerie Rutsch 097ad6fae5 Add specs
2022-03-16 21:20:51 -05:00

13 lines
305 B
TypeScript

import renderStorybookUI from '..';
describe('Main API', () => {
it('should fail if provider is not extended from the base Provider', () => {
const run = () => {
const fakeProvider = {};
renderStorybookUI(null, fakeProvider);
};
expect(run).toThrow(/base Provider/);
});
});