UNPKG

lucid-ui

Version:

A UI component library from AppNexus.

13 lines 429 B
// Reducers spec file only necessary if your new component includes reducers. import { onX } from './ExampleComponent.reducers'; describe('ExampleComponent reducers', function () { var initialState = { test: 'this is text' }; describe('onX', function () { it('should show the example state', function () { var nextState = onX(initialState); expect(nextState.test).toBe('this is text'); }); }); });