const req = httpTesting.expectOne(`api/host/${hostname}/devices`);
expect(req.request.method).toBe('GET');
});
+
+ it('should update host', fakeAsync(() => {
+ service.update('mon0', ['foo', 'bar']).subscribe();
+ const req = httpTesting.expectOne('api/host/mon0');
+ expect(req.request.method).toBe('PUT');
+ expect(req.request.body).toEqual({ labels: ['foo', 'bar'] });
+ }));
});