Skip to content

Commit

Permalink
getting rid of parameterized unwrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
tomkis committed Feb 20, 2017
1 parent b425580 commit ba8a79a
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 70 deletions.
Empty file.
1 change: 0 additions & 1 deletion packages/prism-redux/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
export { default as buildReducer } from './buildReducer';
export { default as buildUnwrapper } from './unwrappers/buildUnwrapper';
export { default as buildParameterizedUnwrapper } from './unwrappers/buildParameterizedUnwrapper';

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,9 @@ describe('buildUnwrapper', () => {

expect(unwrap(<Action>{ type: 'Foo.Bar' as string, payload: 42 })).toEqual({ type: 'Bar', payload: 42 });
});

it('should be able to use as parameterized unwrapper', () => {
const unwrap = buildUnwrapper('Foo');
expect(unwrap({ type: 'Foo.1.Bar' })).toEqual({ type: '1.Bar' });
})
});
30 changes: 0 additions & 30 deletions packages/prism-redux/src/unwrappers/buildParameterizedUnwrapper.ts

This file was deleted.

1 change: 0 additions & 1 deletion packages/prism/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
export { enhanceComponent } from 'prism-react';
export { buildReducer } from 'prism-redux';
export { buildUnwrapper } from 'prism-redux';
export { buildParameterizedUnwrapper } from 'prism-redux';

0 comments on commit ba8a79a

Please sign in to comment.