Marcus Thuma. Kant Praxis
Centro para medicina interna
Cardiologia, Gastroenterologia, Clínica Geral
Kurfürstendamm 42
10719 Berlim
Tel: (030) 88 71 44 60
Fax: (030) 88 71 44 619
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
it('should return an Observable<SearchResults>', () => { | |
service.search('users', dummyParams) | |
.subscribe(result => { | |
expect(result.items.length).toBe(2); | |
}); | |
const req = httpMock.expectOne(`${service.API_URL}/search/users?q=cironunes`); | |
expect(req.request.url).toBe(`${service.API_URL}/search/users`); | |
expect(req.request.params).toEqual(dummyParams); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
afterEach(() => { | |
httpMock.verify(); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { HttpInterceptor, HttpEvent, HttpRequest, HttpHandler } from '@angular/common/http'; | |
import { Observable } from 'rxjs/Observable'; | |
export class LoadingInterceptor implements HttpInterceptor { | |
intercept(req: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>> { | |
const loadingReq = req.clone({ | |
reportProgress: true | |
}); |
{
- "outputPath": "dist/piggybank",
+ "outputPath": "functions/dist/piggybank",
- "outputPath": "dist/piggybank-server",
+ "outputPath:": "functions/dist/piggybank-server",
}
OlderNewer