Code Review
/
portal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Fixed the test cases,added sonar config
[portal.git]
/
portal-FE-common
/
src
/
app
/
shared
/
plugin
/
plugin.component.spec.ts
diff --git
a/portal-FE-common/src/app/shared/plugin/plugin.component.spec.ts
b/portal-FE-common/src/app/shared/plugin/plugin.component.spec.ts
index
cc5810c
..
59802ba
100644
(file)
--- a/
portal-FE-common/src/app/shared/plugin/plugin.component.spec.ts
+++ b/
portal-FE-common/src/app/shared/plugin/plugin.component.spec.ts
@@
-39,14
+39,18
@@
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { PluginComponent } from './plugin.component';
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { PluginComponent } from './plugin.component';
+import { ClientPluginLoaderService } from './plugin-loader/client-plugin-loader.service';
+import { HttpClientTestingModule } from '@angular/common/http/testing';
describe('PluginComponent', () => {
let component: PluginComponent;
let fixture: ComponentFixture<PluginComponent>;
describe('PluginComponent', () => {
let component: PluginComponent;
let fixture: ComponentFixture<PluginComponent>;
-
+ let clientPluginLoaderService: ClientPluginLoaderService;
beforeEach(async(() => {
TestBed.configureTestingModule({
beforeEach(async(() => {
TestBed.configureTestingModule({
- declarations: [ PluginComponent ]
+ declarations: [ PluginComponent ],
+ providers:[ClientPluginLoaderService],
+ imports: [HttpClientTestingModule]
})
.compileComponents();
}));
})
.compileComponents();
}));