test: remove all boilerplate tests

This commit is contained in:
Johannes Millan 2019-09-29 16:41:14 +02:00
parent c7214b2dbd
commit 6863023da9
22 changed files with 423 additions and 447 deletions

View file

@ -1,25 +1,25 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { SideNavComponent } from './side-nav.component';
describe('ProjectListComponent', () => {
let component: SideNavComponent;
let fixture: ComponentFixture<SideNavComponent>;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ SideNavComponent ]
})
.compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(SideNavComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});
// import { async, ComponentFixture, TestBed } from '@angular/core/testing';
//
// import { SideNavComponent } from './side-nav.component';
//
// describe('ProjectListComponent', () => {
// let component: SideNavComponent;
// let fixture: ComponentFixture<SideNavComponent>;
//
// beforeEach(async(() => {
// TestBed.configureTestingModule({
// declarations: [ SideNavComponent ]
// })
// .compileComponents();
// }));
//
// beforeEach(() => {
// fixture = TestBed.createComponent(SideNavComponent);
// component = fixture.componentInstance;
// fixture.detectChanges();
// });
//
// it('should create', () => {
// expect(component).toBeTruthy();
// });
// });

View file

@ -1,12 +1,12 @@
import {TestBed} from '@angular/core/testing';
import {CompressionService} from './compression.service';
describe('CompressionService', () => {
beforeEach(() => TestBed.configureTestingModule({}));
it('should be created', () => {
const service: CompressionService = TestBed.get(CompressionService);
expect(service).toBeTruthy();
});
});
// import {TestBed} from '@angular/core/testing';
//
// import {CompressionService} from './compression.service';
//
// describe('CompressionService', () => {
// beforeEach(() => TestBed.configureTestingModule({}));
//
// it('should be created', () => {
// const service: CompressionService = TestBed.get(CompressionService);
// expect(service).toBeTruthy();
// });
// });

View file

@ -1,12 +1,12 @@
import { TestBed } from '@angular/core/testing';
import { LanguageService } from './language.service';
describe('LanguageService', () => {
beforeEach(() => TestBed.configureTestingModule({}));
it('should be created', () => {
const service: LanguageService = TestBed.get(LanguageService);
expect(service).toBeTruthy();
});
});
// import { TestBed } from '@angular/core/testing';
//
// import { LanguageService } from './language.service';
//
// describe('LanguageService', () => {
// beforeEach(() => TestBed.configureTestingModule({}));
//
// it('should be created', () => {
// const service: LanguageService = TestBed.get(LanguageService);
// expect(service).toBeTruthy();
// });
// });

View file

@ -1,12 +1,12 @@
import { TestBed } from '@angular/core/testing';
import { GlobalThemeService } from './global-theme.service';
describe('GlobalThemeService', () => {
beforeEach(() => TestBed.configureTestingModule({}));
it('should be created', () => {
const service: GlobalThemeService = TestBed.get(GlobalThemeService);
expect(service).toBeTruthy();
});
});
// import { TestBed } from '@angular/core/testing';
//
// import { GlobalThemeService } from './global-theme.service';
//
// describe('GlobalThemeService', () => {
// beforeEach(() => TestBed.configureTestingModule({}));
//
// it('should be created', () => {
// const service: GlobalThemeService = TestBed.get(GlobalThemeService);
// expect(service).toBeTruthy();
// });
// });

View file

@ -1,25 +1,25 @@
import {async, ComponentFixture, TestBed} from '@angular/core/testing';
import {EvaluationSheetComponent} from './evaluation-sheet.component';
describe('EvaluationQuestionsComponent', () => {
let component: EvaluationSheetComponent;
let fixture: ComponentFixture<EvaluationSheetComponent>;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [EvaluationSheetComponent]
})
.compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(EvaluationSheetComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});
// import {async, ComponentFixture, TestBed} from '@angular/core/testing';
//
// import {EvaluationSheetComponent} from './evaluation-sheet.component';
//
// describe('EvaluationQuestionsComponent', () => {
// let component: EvaluationSheetComponent;
// let fixture: ComponentFixture<EvaluationSheetComponent>;
//
// beforeEach(async(() => {
// TestBed.configureTestingModule({
// declarations: [EvaluationSheetComponent]
// })
// .compileComponents();
// }));
//
// beforeEach(() => {
// fixture = TestBed.createComponent(EvaluationSheetComponent);
// component = fixture.componentInstance;
// fixture.detectChanges();
// });
//
// it('should create', () => {
// expect(component).toBeTruthy();
// });
// });

View file

@ -1,25 +1,25 @@
import {async, ComponentFixture, TestBed} from '@angular/core/testing';
import {ImprovementBannerComponent} from './improvement-banner.component';
describe('ImprovementBannerComponent', () => {
let component: ImprovementBannerComponent;
let fixture: ComponentFixture<ImprovementBannerComponent>;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ImprovementBannerComponent]
})
.compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(ImprovementBannerComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});
// import {async, ComponentFixture, TestBed} from '@angular/core/testing';
//
// import {ImprovementBannerComponent} from './improvement-banner.component';
//
// describe('ImprovementBannerComponent', () => {
// let component: ImprovementBannerComponent;
// let fixture: ComponentFixture<ImprovementBannerComponent>;
//
// beforeEach(async(() => {
// TestBed.configureTestingModule({
// declarations: [ImprovementBannerComponent]
// })
// .compileComponents();
// }));
//
// beforeEach(() => {
// fixture = TestBed.createComponent(ImprovementBannerComponent);
// component = fixture.componentInstance;
// fixture.detectChanges();
// });
//
// it('should create', () => {
// expect(component).toBeTruthy();
// });
// });

View file

@ -1,25 +1,25 @@
import {async, ComponentFixture, TestBed} from '@angular/core/testing';
import {MetricComponent} from './metric.component';
describe('MetricsComponent', () => {
let component: MetricComponent;
let fixture: ComponentFixture<MetricComponent>;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [MetricComponent]
})
.compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(MetricComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});
// import {async, ComponentFixture, TestBed} from '@angular/core/testing';
//
// import {MetricComponent} from './metric.component';
//
// describe('MetricsComponent', () => {
// let component: MetricComponent;
// let fixture: ComponentFixture<MetricComponent>;
//
// beforeEach(async(() => {
// TestBed.configureTestingModule({
// declarations: [MetricComponent]
// })
// .compileComponents();
// }));
//
// beforeEach(() => {
// fixture = TestBed.createComponent(MetricComponent);
// component = fixture.componentInstance;
// fixture.detectChanges();
// });
//
// it('should create', () => {
// expect(component).toBeTruthy();
// });
// });

View file

@ -1,25 +0,0 @@
import {async, ComponentFixture, TestBed} from '@angular/core/testing';
import {ProcrastinationComponent} from './procrastination.component';
describe('ProcrastinationComponent', () => {
let component: ProcrastinationComponent;
let fixture: ComponentFixture<ProcrastinationComponent>;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ProcrastinationComponent]
})
.compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(ProcrastinationComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});

View file

@ -1,25 +1,25 @@
import {async, ComponentFixture, TestBed} from '@angular/core/testing';
import {DialogEditTaskRepeatCfgComponent} from './dialog-edit-task-repeat-cfg.component';
describe('DialogEditTaskRepeatCfgComponent', () => {
let component: DialogEditTaskRepeatCfgComponent;
let fixture: ComponentFixture<DialogEditTaskRepeatCfgComponent>;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [DialogEditTaskRepeatCfgComponent]
})
.compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(DialogEditTaskRepeatCfgComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});
// import {async, ComponentFixture, TestBed} from '@angular/core/testing';
//
// import {DialogEditTaskRepeatCfgComponent} from './dialog-edit-task-repeat-cfg.component';
//
// describe('DialogEditTaskRepeatCfgComponent', () => {
// let component: DialogEditTaskRepeatCfgComponent;
// let fixture: ComponentFixture<DialogEditTaskRepeatCfgComponent>;
//
// beforeEach(async(() => {
// TestBed.configureTestingModule({
// declarations: [DialogEditTaskRepeatCfgComponent]
// })
// .compileComponents();
// }));
//
// beforeEach(() => {
// fixture = TestBed.createComponent(DialogEditTaskRepeatCfgComponent);
// component = fixture.componentInstance;
// fixture.detectChanges();
// });
//
// it('should create', () => {
// expect(component).toBeTruthy();
// });
// });

View file

@ -1,25 +1,25 @@
import {async, ComponentFixture, TestBed} from '@angular/core/testing';
import {TaskSummaryTableComponent} from './task-summary-table.component';
describe('TaskSummaryTableComponent', () => {
let component: TaskSummaryTableComponent;
let fixture: ComponentFixture<TaskSummaryTableComponent>;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [TaskSummaryTableComponent]
})
.compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(TaskSummaryTableComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});
// import {async, ComponentFixture, TestBed} from '@angular/core/testing';
//
// import {TaskSummaryTableComponent} from './task-summary-table.component';
//
// describe('TaskSummaryTableComponent', () => {
// let component: TaskSummaryTableComponent;
// let fixture: ComponentFixture<TaskSummaryTableComponent>;
//
// beforeEach(async(() => {
// TestBed.configureTestingModule({
// declarations: [TaskSummaryTableComponent]
// })
// .compileComponents();
// }));
//
// beforeEach(() => {
// fixture = TestBed.createComponent(TaskSummaryTableComponent);
// component = fixture.componentInstance;
// fixture.detectChanges();
// });
//
// it('should create', () => {
// expect(component).toBeTruthy();
// });
// });

View file

@ -1,12 +1,12 @@
import { TestBed } from '@angular/core/testing';
import { UiHelperService } from './ui-helper.service';
describe('UiHelperService', () => {
beforeEach(() => TestBed.configureTestingModule({}));
it('should be created', () => {
const service: UiHelperService = TestBed.get(UiHelperService);
expect(service).toBeTruthy();
});
});
// import { TestBed } from '@angular/core/testing';
//
// import { UiHelperService } from './ui-helper.service';
//
// describe('UiHelperService', () => {
// beforeEach(() => TestBed.configureTestingModule({}));
//
// it('should be created', () => {
// const service: UiHelperService = TestBed.get(UiHelperService);
// expect(service).toBeTruthy();
// });
// });

View file

@ -1,25 +1,25 @@
import {async, ComponentFixture, TestBed} from '@angular/core/testing';
import {WorklogWeekComponent} from './worklog-week.component';
describe('WorklogWeekComponent', () => {
let component: WorklogWeekComponent;
let fixture: ComponentFixture<WorklogWeekComponent>;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [WorklogWeekComponent]
})
.compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(WorklogWeekComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});
// import {async, ComponentFixture, TestBed} from '@angular/core/testing';
//
// import {WorklogWeekComponent} from './worklog-week.component';
//
// describe('WorklogWeekComponent', () => {
// let component: WorklogWeekComponent;
// let fixture: ComponentFixture<WorklogWeekComponent>;
//
// beforeEach(async(() => {
// TestBed.configureTestingModule({
// declarations: [WorklogWeekComponent]
// })
// .compileComponents();
// }));
//
// beforeEach(() => {
// fixture = TestBed.createComponent(WorklogWeekComponent);
// component = fixture.componentInstance;
// fixture.detectChanges();
// });
//
// it('should create', () => {
// expect(component).toBeTruthy();
// });
// });

View file

@ -1,12 +1,12 @@
import {TestBed} from '@angular/core/testing';
import {WorklogService} from './worklog.service';
describe('WorklogService', () => {
beforeEach(() => TestBed.configureTestingModule({}));
it('should be created', () => {
const service: WorklogService = TestBed.get(WorklogService);
expect(service).toBeTruthy();
});
});
// import {TestBed} from '@angular/core/testing';
//
// import {WorklogService} from './worklog.service';
//
// describe('WorklogService', () => {
// beforeEach(() => TestBed.configureTestingModule({}));
//
// it('should be created', () => {
// const service: WorklogService = TestBed.get(WorklogService);
// expect(service).toBeTruthy();
// });
// });

View file

@ -1,25 +1,25 @@
import {async, ComponentFixture, TestBed} from '@angular/core/testing';
import {MetricPageComponent} from './metric-page.component';
describe('MetricPageComponent', () => {
let component: MetricPageComponent;
let fixture: ComponentFixture<MetricPageComponent>;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [MetricPageComponent]
})
.compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(MetricPageComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});
// import {async, ComponentFixture, TestBed} from '@angular/core/testing';
//
// import {MetricPageComponent} from './metric-page.component';
//
// describe('MetricPageComponent', () => {
// let component: MetricPageComponent;
// let fixture: ComponentFixture<MetricPageComponent>;
//
// beforeEach(async(() => {
// TestBed.configureTestingModule({
// declarations: [MetricPageComponent]
// })
// .compileComponents();
// }));
//
// beforeEach(() => {
// fixture = TestBed.createComponent(MetricPageComponent);
// component = fixture.componentInstance;
// fixture.detectChanges();
// });
//
// it('should create', () => {
// expect(component).toBeTruthy();
// });
// });

View file

@ -1,25 +1,25 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { ProjectSettingsComponent } from './project-settings.component';
describe('ProjectSettingsComponent', () => {
let component: ProjectSettingsComponent;
let fixture: ComponentFixture<ProjectSettingsComponent>;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ ProjectSettingsComponent ]
})
.compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(ProjectSettingsComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});
// import { async, ComponentFixture, TestBed } from '@angular/core/testing';
//
// import { ProjectSettingsComponent } from './project-settings.component';
//
// describe('ProjectSettingsComponent', () => {
// let component: ProjectSettingsComponent;
// let fixture: ComponentFixture<ProjectSettingsComponent>;
//
// beforeEach(async(() => {
// TestBed.configureTestingModule({
// declarations: [ ProjectSettingsComponent ]
// })
// .compileComponents();
// }));
//
// beforeEach(() => {
// fixture = TestBed.createComponent(ProjectSettingsComponent);
// component = fixture.componentInstance;
// fixture.detectChanges();
// });
//
// it('should create', () => {
// expect(component).toBeTruthy();
// });
// });

View file

@ -1,25 +1,25 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { SchedulePageComponent } from './schedule-page.component';
describe('SchedulePageComponent', () => {
let component: SchedulePageComponent;
let fixture: ComponentFixture<SchedulePageComponent>;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ SchedulePageComponent ]
})
.compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(SchedulePageComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});
// import { async, ComponentFixture, TestBed } from '@angular/core/testing';
//
// import { SchedulePageComponent } from './schedule-page.component';
//
// describe('SchedulePageComponent', () => {
// let component: SchedulePageComponent;
// let fixture: ComponentFixture<SchedulePageComponent>;
//
// beforeEach(async(() => {
// TestBed.configureTestingModule({
// declarations: [ SchedulePageComponent ]
// })
// .compileComponents();
// }));
//
// beforeEach(() => {
// fixture = TestBed.createComponent(SchedulePageComponent);
// component = fixture.componentInstance;
// fixture.detectChanges();
// });
//
// it('should create', () => {
// expect(component).toBeTruthy();
// });
// });

View file

@ -1,25 +1,25 @@
import {async, ComponentFixture, TestBed} from '@angular/core/testing';
import {ChipListInputComponent} from './chip-list-input.component';
describe('ChipListInputComponent', () => {
let component: ChipListInputComponent;
let fixture: ComponentFixture<ChipListInputComponent>;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ChipListInputComponent]
})
.compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(ChipListInputComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});
// import {async, ComponentFixture, TestBed} from '@angular/core/testing';
//
// import {ChipListInputComponent} from './chip-list-input.component';
//
// describe('ChipListInputComponent', () => {
// let component: ChipListInputComponent;
// let fixture: ComponentFixture<ChipListInputComponent>;
//
// beforeEach(async(() => {
// TestBed.configureTestingModule({
// declarations: [ChipListInputComponent]
// })
// .compileComponents();
// }));
//
// beforeEach(() => {
// fixture = TestBed.createComponent(ChipListInputComponent);
// component = fixture.componentInstance;
// fixture.detectChanges();
// });
//
// it('should create', () => {
// expect(component).toBeTruthy();
// });
// });

View file

@ -1,12 +1,12 @@
import { TestBed } from '@angular/core/testing';
import { FormlyValidationService } from './formly-validation.service';
describe('FormlyValidationService', () => {
beforeEach(() => TestBed.configureTestingModule({}));
it('should be created', () => {
const service: FormlyValidationService = TestBed.get(FormlyValidationService);
expect(service).toBeTruthy();
});
});
// import { TestBed } from '@angular/core/testing';
//
// import { FormlyValidationService } from './formly-validation.service';
//
// describe('FormlyValidationService', () => {
// beforeEach(() => TestBed.configureTestingModule({}));
//
// it('should be created', () => {
// const service: FormlyValidationService = TestBed.get(FormlyValidationService);
// expect(service).toBeTruthy();
// });
// });

View file

@ -1,25 +1,25 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { FormlyTranslatedTemplateComponent } from './formly-translated-template.component';
describe('FormlyTranslatedTemplateComponent', () => {
let component: FormlyTranslatedTemplateComponent;
let fixture: ComponentFixture<FormlyTranslatedTemplateComponent>;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ FormlyTranslatedTemplateComponent ]
})
.compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(FormlyTranslatedTemplateComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});
// import { async, ComponentFixture, TestBed } from '@angular/core/testing';
//
// import { FormlyTranslatedTemplateComponent } from './formly-translated-template.component';
//
// describe('FormlyTranslatedTemplateComponent', () => {
// let component: FormlyTranslatedTemplateComponent;
// let fixture: ComponentFixture<FormlyTranslatedTemplateComponent>;
//
// beforeEach(async(() => {
// TestBed.configureTestingModule({
// declarations: [ FormlyTranslatedTemplateComponent ]
// })
// .compileComponents();
// }));
//
// beforeEach(() => {
// fixture = TestBed.createComponent(FormlyTranslatedTemplateComponent);
// component = fixture.componentInstance;
// fixture.detectChanges();
// });
//
// it('should create', () => {
// expect(component).toBeTruthy();
// });
// });

View file

@ -1,25 +1,25 @@
import {async, ComponentFixture, TestBed} from '@angular/core/testing';
import {FullPageSpinnerComponent} from './full-page-spinner.component';
describe('FullPageSpinnerComponent', () => {
let component: FullPageSpinnerComponent;
let fixture: ComponentFixture<FullPageSpinnerComponent>;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [FullPageSpinnerComponent]
})
.compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(FullPageSpinnerComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});
// import {async, ComponentFixture, TestBed} from '@angular/core/testing';
//
// import {FullPageSpinnerComponent} from './full-page-spinner.component';
//
// describe('FullPageSpinnerComponent', () => {
// let component: FullPageSpinnerComponent;
// let fixture: ComponentFixture<FullPageSpinnerComponent>;
//
// beforeEach(async(() => {
// TestBed.configureTestingModule({
// declarations: [FullPageSpinnerComponent]
// })
// .compileComponents();
// }));
//
// beforeEach(() => {
// fixture = TestBed.createComponent(FullPageSpinnerComponent);
// component = fixture.componentInstance;
// fixture.detectChanges();
// });
//
// it('should create', () => {
// expect(component).toBeTruthy();
// });
// });

View file

@ -1,25 +0,0 @@
import {async, ComponentFixture, TestBed} from '@angular/core/testing';
import {InlineInputComponent} from './inline-input.component';
describe('InlineInputComponent', () => {
let component: InlineInputComponent;
let fixture: ComponentFixture<InlineInputComponent>;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [InlineInputComponent]
})
.compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(InlineInputComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});

View file

@ -0,0 +1,26 @@
import {sortStringDates} from './sortStringDates';
describe('sortStringDates', () => {
it('should sort a list of unsorted dates', () => {
const dates = [
'12-02-2015',
'09-03-2015',
'12-02-2017',
'11-02-2015',
'13-02-2015',
'15-01-2015',
];
const result = sortStringDates(dates);
expect(result.length).toBe(dates.length);
expect(result).toEqual([
'15-01-2015',
'11-02-2015',
'12-02-2015',
'13-02-2015',
'09-03-2015',
'12-02-2017',
]);
});
});