Added missing parameter type and a test for this service method.
Signed-off-by: Tatjana Dehler <tdehler@suse.com>
const req = httpTesting.expectOne('api/cluster_conf/');
expect(req.request.method).toBe('GET');
});
+
+ it('should call get', () => {
+ service.get('configOption').subscribe();
+ const req = httpTesting.expectOne('api/cluster_conf/configOption');
+ expect(req.request.method).toBe('GET');
+ });
});
return this.http.get('api/cluster_conf/');
}
- get(configOption) {
+ get(configOption: string) {
return this.http.get(`api/cluster_conf/${configOption}`);
}
}