]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/pybind/mgr/dashboard/frontend/src/app/shared/api/auth.service.spec.ts
import 15.2.0 Octopus source
[ceph.git] / ceph / src / pybind / mgr / dashboard / frontend / src / app / shared / api / auth.service.spec.ts
index e7ff555705d6c57a3b440e836deb7e61cb15f1a6..6a2e63d7b41926b5efb8a21a5b21732105654209 100644 (file)
@@ -34,7 +34,7 @@ describe('AuthService', () => {
   it('should login and save the user', fakeAsync(() => {
     const fakeCredentials = { username: 'foo', password: 'bar' };
     const fakeResponse = { username: 'foo', token: 'tokenbytes' };
-    service.login(<any>fakeCredentials);
+    service.login(fakeCredentials).subscribe();
     const req = httpTesting.expectOne('api/auth');
     expect(req.request.method).toBe('POST');
     expect(req.request.body).toEqual(fakeCredentials);