fbredius/storybook

View on GitHub
addons/actions/src/preview/__tests__/configureActions.test.js

Summary

Maintainability
A
0 mins
Test Coverage
import { config } from '../configureActions';
import { configureActions } from '../..';

describe('Configure Actions', () => {
  it('can configure actions', () => {
    const depth = 100;
    const clearOnStoryChange = false;
    const limit = 20;

    configureActions({
      depth,
      clearOnStoryChange,
      limit,
    });

    expect(config).toEqual({
      depth,
      clearOnStoryChange,
      limit,
    });
  });
});