How to use the @angular/cli/lib/ast-tools/spec-utils.it function in @angular/cli

To help you get started, we’ve selected a few @angular/cli examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github cloudfoundry / stratos / src / app / shared / components / details-card / details-card.component.spec.ts View on Github external
imports: [
        CommonModule,
        CoreModule,
        BrowserAnimationsModule
      ]
    })
      .compileComponents();
  }));

  beforeEach(() => {
    fixture = TestBed.createComponent(DetailsCardComponent);
    component = fixture.componentInstance;
    fixture.detectChanges();
  });

  it('should be created', () => {
    expect(component).toBeTruthy();
  });
});
github cloudfoundry / stratos / src / app / shared / pipes / mb-to-human-size.pipe.spec.ts View on Github external
describe('MbToHumanSizePipe', () => {

  let pipe;

  beforeEach(() => TestBed.configureTestingModule({
    providers: [
      MbToHumanSizePipe,
      UtilsService
    ]
  }));

  beforeEach(inject([MbToHumanSizePipe], p => {
    pipe = p;
  }));

  it('create an instance', () => {
    expect(pipe).toBeTruthy();
  });
});
github cloudfoundry / stratos / src / app / shared / list-configs / cf-app-config.service.spec.ts View on Github external
beforeEach(() => {
    TestBed.configureTestingModule({
      providers: [
        CfAppConfigService,
        DatePipe
      ],
      imports: [
        CommonModule,
        CoreModule,
        SharedModule,
        createBasicStoreModule()
      ]
    });
  });

  it('should be created', inject([CfAppConfigService], (service: CfAppConfigService) => {
    expect(service).toBeTruthy();
  }));
});
github cloudfoundry / stratos / src / app / shared / list-configs / endpoints-list-config.service.spec.ts View on Github external
describe('EndpointsListConfigService', () => {
  beforeEach(() => {
    TestBed.configureTestingModule({
      providers: [EndpointsListConfigService],
      imports: [
        CommonModule,
        CoreModule,
        SharedModule,
        createBasicStoreModule()
      ]
    });
  });

  it('should be created', inject([EndpointsListConfigService], (service: EndpointsListConfigService) => {
    expect(service).toBeTruthy();
  }));
});
github cloudfoundry / stratos / src / app / shared / components / stepper / steppers / steppers.component.spec.ts View on Github external
MDAppModule,
        RouterTestingModule,
        CommonModule,
        CoreModule
      ]
    })
      .compileComponents();
  }));

  beforeEach(() => {
    fixture = TestBed.createComponent(SteppersComponent);
    component = fixture.componentInstance;
    fixture.detectChanges();
  });

  it('should be created', () => {
    expect(component).toBeTruthy();
  });
});
github cloudfoundry / stratos / src / app / shared / list-configs / cf-app-events-config.service.spec.ts View on Github external
ApplicationSchema,
          new GetApplication(appGuid, cfGuid)
        ),
        generateTestApplicationServiceProvider(appGuid, cfGuid)
      ],
      imports: [
        CommonModule,
        CoreModule,
        SharedModule,
        ApplicationsModule,
        createBasicStoreModule()
      ]
    });
  });

  it('should be created', inject([CfAppEventsConfigService], (service: CfAppEventsConfigService) => {
    expect(service).toBeTruthy();
  }));
});
github cloudfoundry / stratos / src / app / shared / list-configs / cf-app-variables-list-config.service.spec.ts View on Github external
ApplicationSchema,
          new GetApplication(appGuid, cfGuid)
        ),
        generateTestApplicationServiceProvider(appGuid, cfGuid)
      ],
      imports: [
        CommonModule,
        CoreModule,
        SharedModule,
        createBasicStoreModule(),
        ApplicationsModule
      ]
    });
  });

  it('should be created', inject(
    [CfAppVariablesListConfigService],
    (service: CfAppVariablesListConfigService) => {
      expect(service).toBeTruthy();
    }));
});
github cloudfoundry / stratos / src / app / shared / components / dialog-error / dialog-error.component.spec.ts View on Github external
CommonModule,
        CoreModule,
        BrowserAnimationsModule
      ],
      declarations: [DialogErrorComponent]
    })
      .compileComponents();
  }));

  beforeEach(() => {
    fixture = TestBed.createComponent(DialogErrorComponent);
    component = fixture.componentInstance;
    fixture.detectChanges();
  });

  it('should be created', () => {
    expect(component).toBeTruthy();
  });
});
github cloudfoundry / stratos / src / app / shared / components / stateful-icon / stateful-icon.component.spec.ts View on Github external
TestBed.configureTestingModule({
      declarations: [StatefulIconComponent],
      imports: [
        MDAppModule
      ]
    })
      .compileComponents();
  }));

  beforeEach(() => {
    fixture = TestBed.createComponent(StatefulIconComponent);
    component = fixture.componentInstance;
    fixture.detectChanges();
  });

  it('should be created', () => {
    expect(component).toBeTruthy();
  });
});
github cloudfoundry / stratos / src / app / shared / components / editable-display-value / editable-display-value.component.spec.ts View on Github external
],
      imports: [
        CommonModule,
        CoreModule,
      ]
    })
      .compileComponents();
  }));

  beforeEach(() => {
    fixture = TestBed.createComponent(EditableDisplayValueComponent);
    component = fixture.componentInstance;
    fixture.detectChanges();
  });

  it('should be created', () => {
    expect(component).toBeTruthy();
  });
});