Skip to content

Instantly share code, notes, and snippets.

@sbose78
Created February 8, 2018 08:41
Show Gist options
  • Save sbose78/0b7e54c4e9431ffefc6c461b591dadc0 to your computer and use it in GitHub Desktop.
Save sbose78/0b7e54c4e9431ffefc6c461b591dadc0 to your computer and use it in GitHub Desktop.
it('Ensure APILocatorService is injectable', function() {
TestBed.configureTestingModule({
declarations: [TestAPILocatorServiceComponent],
providers: [ApiLocatorService, Fabric8UIConfig, ProviderService]
});
var fixture = TestBed.createComponent(TestAPILocatorServiceComponent);
var comp = fixture.componentInstance;
expect(comp.apilocator).toBeTruthy();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment