Skip to content

@getsaf getsaf released this Jul 4, 2020 · 6 commits to master since this release

  • Angular 10 support
  • Remove dependency on ng-mocks
Assets 2

@getsaf getsaf released this May 31, 2020 · 11 commits to master since this release

  • Added Shallow.alwaysMockPipe (thanks to @bamsir for the suggestion)
Assets 2

@getsaf getsaf released this Apr 17, 2020 · 15 commits to master since this release

  • Fix for #159 where adding stubs caused @outputs to be lost on mocked components. Thanks for reporting this @hakimio!
Assets 2

@getsaf getsaf released this Apr 8, 2020 · 18 commits to master since this release

  • Link to the new docs
  • Fix for #156 (Component "x" is not part of any NgModule)
Assets 2
Apr 8, 2020

@getsaf getsaf released this Apr 5, 2020 · 22 commits to master since this release

9.0.2
Assets 2
Apr 5, 2020

@getsaf getsaf released this Mar 9, 2020 · 33 commits to master since this release

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
You can’t perform that action at this time.