1 import { SharedModule } from '~/app/shared/shared.module';
2 import { RgwRateLimitDetailsComponent } from './rgw-rate-limit-details.component';
3 import { ComponentFixture, TestBed } from '@angular/core/testing';
4 import { HttpClientTestingModule } from '@angular/common/http/testing';
5 import { configureTestBed } from '~/testing/unit-test-helper';
7 describe('RgwRateLimitDetailsComponent', () => {
8 let component: RgwRateLimitDetailsComponent;
9 let fixture: ComponentFixture<RgwRateLimitDetailsComponent>;
11 declarations: [RgwRateLimitDetailsComponent],
12 imports: [HttpClientTestingModule, SharedModule]
16 fixture = TestBed.createComponent(RgwRateLimitDetailsComponent);
17 component = fixture.componentInstance;
18 component.type = 'user';
19 component.rateLimitConfig = {
21 max_read_bytes: 987648,
24 max_write_ops: 9876543212
26 fixture.detectChanges();
29 it('should create', () => {
30 expect(component).toBeTruthy();