p.location-badge. exported from angular2/test defined in angular2/src/test_lib/test_lib.ts (line 301) :markdown .l-main-section h2 Members .l-sub-section h3 andReturn pre.prettyprint code. andReturn(val: any) :markdown By chaining the spy with and.returnValue, all calls to the function will return a specific value. .l-sub-section h3 andCallFake pre.prettyprint code. andCallFake(fn: Function) :markdown By chaining the spy with and.callFake, all calls to the spy will delegate to the supplied function. .l-sub-section h3 reset pre.prettyprint code. reset() :markdown removes all recorded calls