Conditions | 1 |
Paths | 1 |
Total Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | import tagService from '../tag-service'; |
||
3 | it('create enhancer to add service to meta of action functions', () => { |
||
4 | const actionFunction = (params, meta) => meta; |
||
5 | const enhanced = tagService('some-service')(actionFunction); |
||
6 | const result = enhanced({}, {}); |
||
7 | expect(result).toEqual({ service: 'some-service' }); |
||
8 | }); |
||
9 |