Commit 64ace76b authored by Tomek Mrugalski's avatar Tomek Mrugalski 🛰

[#164] results of rake prettier_ui

parent d5d0729c
......@@ -22,7 +22,15 @@ describe('AppComponent', () => {
ToastModule,
],
declarations: [AppComponent],
providers: [GeneralService, HttpClient, HttpHandler, UsersService, MessageService, ServicesService, SettingsService],
providers: [
GeneralService,
HttpClient,
HttpHandler,
UsersService,
MessageService,
ServicesService,
SettingsService,
],
}).compileComponents()
}))
......
......@@ -10,13 +10,15 @@ describe('EventsPageComponent', () => {
beforeEach(async(() => {
TestBed.configureTestingModule({
providers: [ EventsService, {
provide: ActivatedRoute,
useValue: {
snapshot: { queryParams: {} },
providers: [
EventsService,
{
provide: ActivatedRoute,
useValue: {
snapshot: { queryParams: {} },
},
},
}
],
],
declarations: [EventsPageComponent],
}).compileComponents()
}))
......
......@@ -12,14 +12,22 @@ describe('EventsPanelComponent', () => {
beforeEach(async(() => {
TestBed.configureTestingModule({
providers: [EventsService, HttpClient, HttpHandler, UsersService, ServicesService, MessageService,
{
provide: Router,
useValue: {}
}, {
provide: ActivatedRoute,
useValue: {}
}],
providers: [
EventsService,
HttpClient,
HttpHandler,
UsersService,
ServicesService,
MessageService,
{
provide: Router,
useValue: {},
},
{
provide: ActivatedRoute,
useValue: {},
},
],
declarations: [EventsPanelComponent],
}).compileComponents()
}))
......
......@@ -11,11 +11,13 @@ describe('LogViewPageComponent', () => {
beforeEach(async(() => {
TestBed.configureTestingModule({
providers: [
ServicesService, HttpClient, HttpHandler,
ServicesService,
HttpClient,
HttpHandler,
{
provide: ActivatedRoute,
useValue: {},
}
},
],
declarations: [LogViewPageComponent],
}).compileComponents()
......
......@@ -10,11 +10,17 @@ describe('ServerDataService', () => {
beforeEach(() => {
TestBed.configureTestingModule({
providers: [HttpClient, HttpHandler, UsersService, MessageService, ServicesService,
providers: [
HttpClient,
HttpHandler,
UsersService,
MessageService,
ServicesService,
{
provide: Router,
useValue: {}
}]
useValue: {},
},
],
})
service = TestBed.inject(ServerDataService)
})
......
......@@ -9,11 +9,17 @@ import { MessageService } from 'primeng/api'
describe('SettingService', () => {
beforeEach(() =>
TestBed.configureTestingModule({
providers: [SettingsService, UsersService, MessageService, HttpClient, HttpHandler,
providers: [
SettingsService,
UsersService,
MessageService,
HttpClient,
HttpHandler,
{
provide: Router,
useValue: {}
}],
useValue: {},
},
],
})
)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment