UNPKG

redux-contexts

Version:

[![NPM Version](https://img.shields.io/npm/v/redux-contexts.svg?style=flat-square)](https://www.npmjs.com/package/multireducer) [![Build status](https://img.shields.io/travis/Vinnovera/redux-contexts/master.svg?style=flat-square)](https://travis-ci.org/Vi

36 lines (35 loc) 1.54 kB
import contextConnect from '../src/contextConnect'; import contextFromState from '../src/contextFromState'; import ContextStoreProvider from '../src/ContextStoreProvider'; import { createInjectStore, injectReducer, removeReducer } from '../src/reduxInjector'; import * as mainExports from '../src/index'; describe('main exports', () => { it('should export the contextConnect function', () => { expect(mainExports.contextConnect).toBeInstanceOf(Function) expect(mainExports.contextConnect).toEqual(contextConnect); }); it('should export the contextFromState function', () => { expect(mainExports.contextFromState).toBeInstanceOf(Function) expect(mainExports.contextFromState).toEqual(contextFromState); }); it('should export the ContextStoreProvider function', () => { expect(mainExports.ContextStoreProvider).toBeInstanceOf(Function) expect(mainExports.ContextStoreProvider).toEqual(ContextStoreProvider); }); it('should export the createInjectStore function', () => { expect(mainExports.createInjectStore).toBeInstanceOf(Function) expect(mainExports.createInjectStore).toEqual(createInjectStore); }); it('should export the injectReducer function', () => { expect(mainExports.injectReducer).toBeInstanceOf(Function) expect(mainExports.injectReducer).toEqual(injectReducer); }); it('should export the removeReducer function', () => { expect(mainExports.removeReducer).toBeInstanceOf(Function) expect(mainExports.removeReducer).toEqual(removeReducer); }); });