Files
DefinitelyTyped/types/saywhen/saywhen-tests.ts
Sean Sobey be9d76b7ce Added typings for jasmine plugin - saywhen. (#18206)
* Added typings for saywhen.

* Updated to pass linting.

* Removed redundant jasmine reference.

* Removed es2016 target.

* Updated defintions and tests.

* Fixed tests.

* Fixed linting
2017-07-26 07:04:54 -07:00

9 lines
321 B
TypeScript

import * as when from 'saywhen';
when(jasmine.createSpy('test')); // $ExpectType CallHandler<Spy>
when(jasmine.createSpy('test')).isCalled; // $ExpectType Proxy<Spy>
when.captor(); // $ExpectType MatcherProxy<{}>
when.captor(jasmine.any(Number)); // $ExpectType MatcherProxy<Any>
when.noConflict(); // $ExpectType void