UNPKG

bdn-pocket

Version:

pocket tools for managing redux and redux-saga

19 lines (17 loc) 437 B
import test from 'ava' import ActionType from '../src/action_type' test('ActionType', t => { t.is( ActionType().getType('hello you'), 'my-app/HELLO_YOU', 'by default actiontype is prefixed by my-app and type is constantize' ) t.is( ActionType({ prefix: 'coucou', transformer: x => x, }).getType('hello you'), 'coucou/hello you', 'you can override prefix & transformer type function' ) })