Mocking library for TypeScript inspired by http://mockito.org/
Questions tagged [ts-mockito]
32 questions
0
votes
2 answers
check if setter was used
I have a setter/getter in my service
export class fooService {
set foo(value: number): void {
this._privateFoo = value;
}
get foo(): number {
return this._privateFoo;
}
Now i mocked the service using ts-mockito and want to check if…

Andresch Serj
- 35,217
- 15
- 59
- 101
-1
votes
1 answer
How can i supress Api error and return a value instead?
I get a 404 for unused and a 204 for used email from my API. Now i want to transform that to boolean (true/false) using rxjs/pipe and catchError.
emailAvailable(): Observable {
return this.api.email(email).pipe(
map((response:…

Andresch Serj
- 35,217
- 15
- 59
- 101