]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/pybind/mgr/dashboard/frontend/src/app/ceph/nfs/nfs-list/nfs-list.component.spec.ts
import 15.2.2 octopus source
[ceph.git] / ceph / src / pybind / mgr / dashboard / frontend / src / app / ceph / nfs / nfs-list / nfs-list.component.spec.ts
index cbf38d72b5d3f9f73f4c5d3c395284f2b5ee2549..b3bd32cd59cf246f8410e1a15c74cf7f5e3a4cca 100644 (file)
@@ -4,7 +4,7 @@ import { RouterTestingModule } from '@angular/router/testing';
 
 import { TabsModule } from 'ngx-bootstrap/tabs';
 import { ToastrModule } from 'ngx-toastr';
-import { BehaviorSubject, of } from 'rxjs';
+import { of } from 'rxjs';
 
 import {
   configureTestBed,
@@ -53,10 +53,6 @@ describe('NfsListComponent', () => {
     summaryService = TestBed.get(SummaryService);
     nfsService = TestBed.get(NfsService);
     httpTesting = TestBed.get(HttpTestingController);
-
-    // this is needed because summaryService isn't being reset after each test.
-    summaryService['summaryDataSource'] = new BehaviorSubject(null);
-    summaryService['summaryData$'] = summaryService['summaryDataSource'].asObservable();
   });
 
   it('should create', () => {
@@ -68,7 +64,6 @@ describe('NfsListComponent', () => {
       fixture.detectChanges();
       spyOn(nfsService, 'list').and.callThrough();
       httpTesting.expectOne('api/nfs-ganesha/daemon').flush([]);
-      httpTesting.expectOne('api/summary');
     });
 
     afterEach(() => {