Files
DefinitelyTyped/types/saywhen/saywhen-tests.ts
2018-02-06 10:31:25 -08:00

9 lines
322 B
TypeScript

import when = require('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