lucid-ui
Version:
A UI component library from AppNexus.
17 lines (13 loc) • 409 B
text/typescript
// Reducers spec file only necessary if your new component includes reducers.
import { onX } from './ExampleComponent.reducers';
describe('ExampleComponent reducers', () => {
const initialState: any = {
test: 'this is text',
};
describe('onX', () => {
it('should show the example state', () => {
const nextState = onX(initialState);
expect(nextState.test).toBe('this is text');
});
});
});