fbredius/storybook

View on GitHub
lib/ui/src/__tests__/index.js

Summary

Maintainability
A
0 mins
Test Coverage
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/);
  });
});