cloudfoundry/stratos

View on GitHub
src/frontend/packages/store/src/entity-service.spec.ts

Summary

Maintainability
A
0 mins
Test Coverage

File entity-service.spec.ts has 375 lines of code (exceeds 250 allowed). Consider refactoring.
Wontfix

import { HttpClientModule, HttpRequest, HttpXhrBackend } from '@angular/common/http';
import { HttpTestingController } from '@angular/common/http/testing';
import { inject, TestBed } from '@angular/core/testing';
import { Action, Store } from '@ngrx/store';
import { filter, first, map, pairwise, tap } from 'rxjs/operators';
Severity: Minor
Found in src/frontend/packages/store/src/entity-service.spec.ts - About 5 hrs to fix

    Function getAllTheThings has 32 lines of code (exceeds 25 allowed). Consider refactoring.
    Wontfix

    function getAllTheThings(store: Store<GeneralAppState>, guid: string, schemaKey: string) {
      const entities = {
        [entitySchema.key]: {
          [guid]: {
            guid,
    Severity: Minor
    Found in src/frontend/packages/store/src/entity-service.spec.ts - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status