- Added
Shallow.alwaysMockPipe
(thanks to @bamsir for the suggestion)
Assets
2
Assets
2
- Link to the new docs
- Fix for #156 (Component "x" is not part of any NgModule)
Assets
2
9.0.2
Assets
2
Check out the new docs!
https://getsaf.github.io/shallow-render
Addresses deficiencies noted in #153
This allows mocking injection tokens directly like:
const STRING_TOKEN = new InjectionToken<string>('A string injection token');
const FUNCTION_TOKEN = new InjectionToken<() => string>('A function injection token');
// Can now be mocked with:
shallow
.mock(STRING_TOKEN, 'mocked value')
.mock(FUNCTION_TOKEN, () => 'mocked function return');
Assets
2
PreviousNext