0.1.3 • Published 6 years ago
jest-ngredux-mock v0.1.3
Jest NgRedux Mock
Use this module with Jest to run web tests
that rely on @angular-redux
package
Usage
import { ngReduxMock } from 'jest-ngredux-mock'
describe('Module', () => {
const mod = new ModuleWhichRelyOnRedux(ngReduxMock)
it('should work', () => {
...
})
})
where the (simplified) module looks like
import { NgRedux } from '@angular-redux/store';
export class ModuleWhichRelyOnRedux {
constructor(private ngRedux: NgRedux<any>,) {}
}