mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-02 13:45:10 -05:00
test: remove most of the boilerplate tests
This commit is contained in:
parent
f6a9d5b038
commit
d38bed1334
@ -1,33 +0,0 @@
|
|||||||
import { TestBed } from '@angular/core/testing'
|
|
||||||
import { RouterTestingModule } from '@angular/router/testing'
|
|
||||||
import { AppComponent } from './app.component'
|
|
||||||
|
|
||||||
describe('AppComponent', () => {
|
|
||||||
beforeEach(async () => {
|
|
||||||
await TestBed.configureTestingModule({
|
|
||||||
imports: [RouterTestingModule],
|
|
||||||
declarations: [AppComponent],
|
|
||||||
}).compileComponents()
|
|
||||||
})
|
|
||||||
|
|
||||||
it('should create the app', () => {
|
|
||||||
const fixture = TestBed.createComponent(AppComponent)
|
|
||||||
const app = fixture.componentInstance
|
|
||||||
expect(app).toBeTruthy()
|
|
||||||
})
|
|
||||||
|
|
||||||
it(`should have as title 'paperless-ui'`, () => {
|
|
||||||
const fixture = TestBed.createComponent(AppComponent)
|
|
||||||
const app = fixture.componentInstance
|
|
||||||
expect(app.title).toEqual('paperless-ui')
|
|
||||||
})
|
|
||||||
|
|
||||||
it('should render title', () => {
|
|
||||||
const fixture = TestBed.createComponent(AppComponent)
|
|
||||||
fixture.detectChanges()
|
|
||||||
const compiled = fixture.nativeElement
|
|
||||||
expect(compiled.querySelector('.content span').textContent).toContain(
|
|
||||||
'paperless-ui app is running!'
|
|
||||||
)
|
|
||||||
})
|
|
||||||
})
|
|
@ -1,24 +0,0 @@
|
|||||||
import { ComponentFixture, TestBed } from '@angular/core/testing'
|
|
||||||
|
|
||||||
import { AppFrameComponent } from './app-frame.component'
|
|
||||||
|
|
||||||
describe('AppFrameComponent', () => {
|
|
||||||
let component: AppFrameComponent
|
|
||||||
let fixture: ComponentFixture<AppFrameComponent>
|
|
||||||
|
|
||||||
beforeEach(async () => {
|
|
||||||
await TestBed.configureTestingModule({
|
|
||||||
declarations: [AppFrameComponent],
|
|
||||||
}).compileComponents()
|
|
||||||
})
|
|
||||||
|
|
||||||
beforeEach(() => {
|
|
||||||
fixture = TestBed.createComponent(AppFrameComponent)
|
|
||||||
component = fixture.componentInstance
|
|
||||||
fixture.detectChanges()
|
|
||||||
})
|
|
||||||
|
|
||||||
it('should create', () => {
|
|
||||||
expect(component).toBeTruthy()
|
|
||||||
})
|
|
||||||
})
|
|
@ -1,24 +0,0 @@
|
|||||||
import { ComponentFixture, TestBed } from '@angular/core/testing'
|
|
||||||
|
|
||||||
import { ConfirmDialogComponent } from './confirm-dialog.component'
|
|
||||||
|
|
||||||
describe('ConfirmDialogComponent', () => {
|
|
||||||
let component: ConfirmDialogComponent
|
|
||||||
let fixture: ComponentFixture<ConfirmDialogComponent>
|
|
||||||
|
|
||||||
beforeEach(async () => {
|
|
||||||
await TestBed.configureTestingModule({
|
|
||||||
declarations: [ConfirmDialogComponent],
|
|
||||||
}).compileComponents()
|
|
||||||
})
|
|
||||||
|
|
||||||
beforeEach(() => {
|
|
||||||
fixture = TestBed.createComponent(ConfirmDialogComponent)
|
|
||||||
component = fixture.componentInstance
|
|
||||||
fixture.detectChanges()
|
|
||||||
})
|
|
||||||
|
|
||||||
it('should create', () => {
|
|
||||||
expect(component).toBeTruthy()
|
|
||||||
})
|
|
||||||
})
|
|
@ -1,24 +0,0 @@
|
|||||||
import { ComponentFixture, TestBed } from '@angular/core/testing'
|
|
||||||
|
|
||||||
import { DateDropdownComponent } from './date-dropdown.component'
|
|
||||||
|
|
||||||
describe('DateDropdownComponent', () => {
|
|
||||||
let component: DateDropdownComponent
|
|
||||||
let fixture: ComponentFixture<DateDropdownComponent>
|
|
||||||
|
|
||||||
beforeEach(async () => {
|
|
||||||
await TestBed.configureTestingModule({
|
|
||||||
declarations: [DateDropdownComponent],
|
|
||||||
}).compileComponents()
|
|
||||||
})
|
|
||||||
|
|
||||||
beforeEach(() => {
|
|
||||||
fixture = TestBed.createComponent(DateDropdownComponent)
|
|
||||||
component = fixture.componentInstance
|
|
||||||
fixture.detectChanges()
|
|
||||||
})
|
|
||||||
|
|
||||||
it('should create', () => {
|
|
||||||
expect(component).toBeTruthy()
|
|
||||||
})
|
|
||||||
})
|
|
@ -1,24 +0,0 @@
|
|||||||
import { ComponentFixture, TestBed } from '@angular/core/testing'
|
|
||||||
|
|
||||||
import { EditDialogComponent } from './edit-dialog.component'
|
|
||||||
|
|
||||||
describe('EditDialogComponent', () => {
|
|
||||||
let component: EditDialogComponent
|
|
||||||
let fixture: ComponentFixture<EditDialogComponent>
|
|
||||||
|
|
||||||
beforeEach(async () => {
|
|
||||||
await TestBed.configureTestingModule({
|
|
||||||
declarations: [EditDialogComponent],
|
|
||||||
}).compileComponents()
|
|
||||||
})
|
|
||||||
|
|
||||||
beforeEach(() => {
|
|
||||||
fixture = TestBed.createComponent(EditDialogComponent)
|
|
||||||
component = fixture.componentInstance
|
|
||||||
fixture.detectChanges()
|
|
||||||
})
|
|
||||||
|
|
||||||
it('should create', () => {
|
|
||||||
expect(component).toBeTruthy()
|
|
||||||
})
|
|
||||||
})
|
|
@ -19,27 +19,27 @@ export abstract class EditDialogComponent<T extends ObjectWithId>
|
|||||||
) {}
|
) {}
|
||||||
|
|
||||||
@Input()
|
@Input()
|
||||||
dialogMode: string = 'create'
|
dialogMode: string = 'create';
|
||||||
|
|
||||||
@Input()
|
@Input()
|
||||||
object: T
|
object: T;
|
||||||
|
|
||||||
@Output()
|
@Output()
|
||||||
success = new EventEmitter()
|
success = new EventEmitter();
|
||||||
|
|
||||||
networkActive = false
|
networkActive = false;
|
||||||
|
|
||||||
closeEnabled = false
|
closeEnabled = false;
|
||||||
|
|
||||||
error = null
|
error = null;
|
||||||
|
|
||||||
abstract getForm(): FormGroup
|
abstract getForm(): FormGroup;
|
||||||
|
|
||||||
objectForm: FormGroup = this.getForm()
|
objectForm: FormGroup = this.getForm();
|
||||||
|
|
||||||
ngOnInit(): void {
|
ngOnInit(): void {
|
||||||
if (this.object != null) {
|
if (this.object != null) {
|
||||||
this.objectForm.patchValue(this.object)
|
this.objectForm.patchValue(this.object);
|
||||||
}
|
}
|
||||||
|
|
||||||
// wait to enable close button so it doesnt steal focus from input since its the first clickable element in the DOM
|
// wait to enable close button so it doesnt steal focus from input since its the first clickable element in the DOM
|
||||||
@ -49,34 +49,34 @@ export abstract class EditDialogComponent<T extends ObjectWithId>
|
|||||||
}
|
}
|
||||||
|
|
||||||
getCreateTitle() {
|
getCreateTitle() {
|
||||||
return $localize`Create new item`
|
return $localize`Create new item`;
|
||||||
}
|
}
|
||||||
|
|
||||||
getEditTitle() {
|
getEditTitle() {
|
||||||
return $localize`Edit item`
|
return $localize`Edit item`;
|
||||||
}
|
}
|
||||||
|
|
||||||
getSaveErrorMessage(error: string) {
|
getSaveErrorMessage(error: string) {
|
||||||
return $localize`Could not save element: ${error}`
|
return $localize`Could not save element: ${error}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
getTitle() {
|
getTitle() {
|
||||||
switch (this.dialogMode) {
|
switch (this.dialogMode) {
|
||||||
case 'create':
|
case 'create':
|
||||||
return this.getCreateTitle()
|
return this.getCreateTitle();
|
||||||
case 'edit':
|
case 'edit':
|
||||||
return this.getEditTitle()
|
return this.getEditTitle();
|
||||||
default:
|
default:
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
getMatchingAlgorithms() {
|
getMatchingAlgorithms() {
|
||||||
return MATCHING_ALGORITHMS
|
return MATCHING_ALGORITHMS;
|
||||||
}
|
}
|
||||||
|
|
||||||
get patternRequired(): boolean {
|
get patternRequired(): boolean {
|
||||||
return this.objectForm?.value.matching_algorithm !== MATCH_AUTO
|
return this.objectForm?.value.matching_algorithm !== MATCH_AUTO;
|
||||||
}
|
}
|
||||||
|
|
||||||
save() {
|
save() {
|
||||||
@ -90,7 +90,7 @@ export abstract class EditDialogComponent<T extends ObjectWithId>
|
|||||||
serverResponse = this.service.create(newObject)
|
serverResponse = this.service.create(newObject)
|
||||||
break
|
break
|
||||||
case 'edit':
|
case 'edit':
|
||||||
serverResponse = this.service.update(newObject)
|
serverResponse = this.service.update(newObject);
|
||||||
default:
|
default:
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
@ -108,6 +108,6 @@ export abstract class EditDialogComponent<T extends ObjectWithId>
|
|||||||
}
|
}
|
||||||
|
|
||||||
cancel() {
|
cancel() {
|
||||||
this.activeModal.close()
|
this.activeModal.close();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,24 +0,0 @@
|
|||||||
import { ComponentFixture, TestBed } from '@angular/core/testing'
|
|
||||||
|
|
||||||
import { FilterableDropodownComponent } from './filterable-dropdown.component'
|
|
||||||
|
|
||||||
describe('FilterableDropodownComponent', () => {
|
|
||||||
let component: FilterableDropodownComponent
|
|
||||||
let fixture: ComponentFixture<FilterableDropodownComponent>
|
|
||||||
|
|
||||||
beforeEach(async () => {
|
|
||||||
await TestBed.configureTestingModule({
|
|
||||||
declarations: [FilterableDropodownComponent],
|
|
||||||
}).compileComponents()
|
|
||||||
})
|
|
||||||
|
|
||||||
beforeEach(() => {
|
|
||||||
fixture = TestBed.createComponent(FilterableDropodownComponent)
|
|
||||||
component = fixture.componentInstance
|
|
||||||
fixture.detectChanges()
|
|
||||||
})
|
|
||||||
|
|
||||||
it('should create', () => {
|
|
||||||
expect(component).toBeTruthy()
|
|
||||||
})
|
|
||||||
})
|
|
@ -1,24 +0,0 @@
|
|||||||
import { ComponentFixture, TestBed } from '@angular/core/testing'
|
|
||||||
|
|
||||||
import { ToggleableDropdownButtonComponent } from './toggleable-dropdown-button.component'
|
|
||||||
|
|
||||||
describe('ToggleableDropdownButtonComponent', () => {
|
|
||||||
let component: ToggleableDropdownButtonComponent
|
|
||||||
let fixture: ComponentFixture<ToggleableDropdownButtonComponent>
|
|
||||||
|
|
||||||
beforeEach(async () => {
|
|
||||||
await TestBed.configureTestingModule({
|
|
||||||
declarations: [ToggleableDropdownButtonComponent],
|
|
||||||
}).compileComponents()
|
|
||||||
})
|
|
||||||
|
|
||||||
beforeEach(() => {
|
|
||||||
fixture = TestBed.createComponent(ToggleableDropdownButtonComponent)
|
|
||||||
component = fixture.componentInstance
|
|
||||||
fixture.detectChanges()
|
|
||||||
})
|
|
||||||
|
|
||||||
it('should create', () => {
|
|
||||||
expect(component).toBeTruthy()
|
|
||||||
})
|
|
||||||
})
|
|
@ -1,24 +0,0 @@
|
|||||||
import { ComponentFixture, TestBed } from '@angular/core/testing'
|
|
||||||
|
|
||||||
import { CheckComponent } from './check.component'
|
|
||||||
|
|
||||||
describe('CheckComponent', () => {
|
|
||||||
let component: CheckComponent
|
|
||||||
let fixture: ComponentFixture<CheckComponent>
|
|
||||||
|
|
||||||
beforeEach(async () => {
|
|
||||||
await TestBed.configureTestingModule({
|
|
||||||
declarations: [CheckComponent],
|
|
||||||
}).compileComponents()
|
|
||||||
})
|
|
||||||
|
|
||||||
beforeEach(() => {
|
|
||||||
fixture = TestBed.createComponent(CheckComponent)
|
|
||||||
component = fixture.componentInstance
|
|
||||||
fixture.detectChanges()
|
|
||||||
})
|
|
||||||
|
|
||||||
it('should create', () => {
|
|
||||||
expect(component).toBeTruthy()
|
|
||||||
})
|
|
||||||
})
|
|
@ -17,6 +17,6 @@ import { AbstractInputComponent } from '../abstract-input'
|
|||||||
})
|
})
|
||||||
export class CheckComponent extends AbstractInputComponent<boolean> {
|
export class CheckComponent extends AbstractInputComponent<boolean> {
|
||||||
constructor() {
|
constructor() {
|
||||||
super()
|
super();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,24 +0,0 @@
|
|||||||
import { ComponentFixture, TestBed } from '@angular/core/testing'
|
|
||||||
|
|
||||||
import { ColorComponent } from './color.component'
|
|
||||||
|
|
||||||
describe('ColorComponent', () => {
|
|
||||||
let component: ColorComponent
|
|
||||||
let fixture: ComponentFixture<ColorComponent>
|
|
||||||
|
|
||||||
beforeEach(async () => {
|
|
||||||
await TestBed.configureTestingModule({
|
|
||||||
declarations: [ColorComponent],
|
|
||||||
}).compileComponents()
|
|
||||||
})
|
|
||||||
|
|
||||||
beforeEach(() => {
|
|
||||||
fixture = TestBed.createComponent(ColorComponent)
|
|
||||||
component = fixture.componentInstance
|
|
||||||
fixture.detectChanges()
|
|
||||||
})
|
|
||||||
|
|
||||||
it('should create', () => {
|
|
||||||
expect(component).toBeTruthy()
|
|
||||||
})
|
|
||||||
})
|
|
@ -1,24 +0,0 @@
|
|||||||
import { ComponentFixture, TestBed } from '@angular/core/testing'
|
|
||||||
|
|
||||||
import { DateComponent } from './date.component'
|
|
||||||
|
|
||||||
describe('DateComponent', () => {
|
|
||||||
let component: DateComponent
|
|
||||||
let fixture: ComponentFixture<DateComponent>
|
|
||||||
|
|
||||||
beforeEach(async () => {
|
|
||||||
await TestBed.configureTestingModule({
|
|
||||||
declarations: [DateComponent],
|
|
||||||
}).compileComponents()
|
|
||||||
})
|
|
||||||
|
|
||||||
beforeEach(() => {
|
|
||||||
fixture = TestBed.createComponent(DateComponent)
|
|
||||||
component = fixture.componentInstance
|
|
||||||
fixture.detectChanges()
|
|
||||||
})
|
|
||||||
|
|
||||||
it('should create', () => {
|
|
||||||
expect(component).toBeTruthy()
|
|
||||||
})
|
|
||||||
})
|
|
@ -1,24 +0,0 @@
|
|||||||
import { ComponentFixture, TestBed } from '@angular/core/testing'
|
|
||||||
|
|
||||||
import { NumberComponent } from './number.component'
|
|
||||||
|
|
||||||
describe('NumberComponent', () => {
|
|
||||||
let component: NumberComponent
|
|
||||||
let fixture: ComponentFixture<NumberComponent>
|
|
||||||
|
|
||||||
beforeEach(async () => {
|
|
||||||
await TestBed.configureTestingModule({
|
|
||||||
declarations: [NumberComponent],
|
|
||||||
}).compileComponents()
|
|
||||||
})
|
|
||||||
|
|
||||||
beforeEach(() => {
|
|
||||||
fixture = TestBed.createComponent(NumberComponent)
|
|
||||||
component = fixture.componentInstance
|
|
||||||
fixture.detectChanges()
|
|
||||||
})
|
|
||||||
|
|
||||||
it('should create', () => {
|
|
||||||
expect(component).toBeTruthy()
|
|
||||||
})
|
|
||||||
})
|
|
@ -1,24 +0,0 @@
|
|||||||
import { ComponentFixture, TestBed } from '@angular/core/testing'
|
|
||||||
|
|
||||||
import { SelectComponent } from './select.component'
|
|
||||||
|
|
||||||
describe('SelectComponent', () => {
|
|
||||||
let component: SelectComponent
|
|
||||||
let fixture: ComponentFixture<SelectComponent>
|
|
||||||
|
|
||||||
beforeEach(async () => {
|
|
||||||
await TestBed.configureTestingModule({
|
|
||||||
declarations: [SelectComponent],
|
|
||||||
}).compileComponents()
|
|
||||||
})
|
|
||||||
|
|
||||||
beforeEach(() => {
|
|
||||||
fixture = TestBed.createComponent(SelectComponent)
|
|
||||||
component = fixture.componentInstance
|
|
||||||
fixture.detectChanges()
|
|
||||||
})
|
|
||||||
|
|
||||||
it('should create', () => {
|
|
||||||
expect(component).toBeTruthy()
|
|
||||||
})
|
|
||||||
})
|
|
@ -1,24 +0,0 @@
|
|||||||
import { ComponentFixture, TestBed } from '@angular/core/testing'
|
|
||||||
|
|
||||||
import { TagsComponent } from './tags.component'
|
|
||||||
|
|
||||||
describe('TagsComponent', () => {
|
|
||||||
let component: TagsComponent
|
|
||||||
let fixture: ComponentFixture<TagsComponent>
|
|
||||||
|
|
||||||
beforeEach(async () => {
|
|
||||||
await TestBed.configureTestingModule({
|
|
||||||
declarations: [TagsComponent],
|
|
||||||
}).compileComponents()
|
|
||||||
})
|
|
||||||
|
|
||||||
beforeEach(() => {
|
|
||||||
fixture = TestBed.createComponent(TagsComponent)
|
|
||||||
component = fixture.componentInstance
|
|
||||||
fixture.detectChanges()
|
|
||||||
})
|
|
||||||
|
|
||||||
it('should create', () => {
|
|
||||||
expect(component).toBeTruthy()
|
|
||||||
})
|
|
||||||
})
|
|
@ -1,24 +0,0 @@
|
|||||||
import { ComponentFixture, TestBed } from '@angular/core/testing'
|
|
||||||
|
|
||||||
import { TextComponent } from './text.component'
|
|
||||||
|
|
||||||
describe('TextComponent', () => {
|
|
||||||
let component: TextComponent
|
|
||||||
let fixture: ComponentFixture<TextComponent>
|
|
||||||
|
|
||||||
beforeEach(async () => {
|
|
||||||
await TestBed.configureTestingModule({
|
|
||||||
declarations: [TextComponent],
|
|
||||||
}).compileComponents()
|
|
||||||
})
|
|
||||||
|
|
||||||
beforeEach(() => {
|
|
||||||
fixture = TestBed.createComponent(TextComponent)
|
|
||||||
component = fixture.componentInstance
|
|
||||||
fixture.detectChanges()
|
|
||||||
})
|
|
||||||
|
|
||||||
it('should create', () => {
|
|
||||||
expect(component).toBeTruthy()
|
|
||||||
})
|
|
||||||
})
|
|
@ -1,24 +0,0 @@
|
|||||||
import { ComponentFixture, TestBed } from '@angular/core/testing'
|
|
||||||
|
|
||||||
import { PageHeaderComponent } from './page-header.component'
|
|
||||||
|
|
||||||
describe('PageHeaderComponent', () => {
|
|
||||||
let component: PageHeaderComponent
|
|
||||||
let fixture: ComponentFixture<PageHeaderComponent>
|
|
||||||
|
|
||||||
beforeEach(async () => {
|
|
||||||
await TestBed.configureTestingModule({
|
|
||||||
declarations: [PageHeaderComponent],
|
|
||||||
}).compileComponents()
|
|
||||||
})
|
|
||||||
|
|
||||||
beforeEach(() => {
|
|
||||||
fixture = TestBed.createComponent(PageHeaderComponent)
|
|
||||||
component = fixture.componentInstance
|
|
||||||
fixture.detectChanges()
|
|
||||||
})
|
|
||||||
|
|
||||||
it('should create', () => {
|
|
||||||
expect(component).toBeTruthy()
|
|
||||||
})
|
|
||||||
})
|
|
@ -1,24 +0,0 @@
|
|||||||
import { ComponentFixture, TestBed } from '@angular/core/testing'
|
|
||||||
|
|
||||||
import { SelectDialogComponent } from './select-dialog.component'
|
|
||||||
|
|
||||||
describe('SelectDialogComponent', () => {
|
|
||||||
let component: SelectDialogComponent
|
|
||||||
let fixture: ComponentFixture<SelectDialogComponent>
|
|
||||||
|
|
||||||
beforeEach(async () => {
|
|
||||||
await TestBed.configureTestingModule({
|
|
||||||
declarations: [SelectDialogComponent],
|
|
||||||
}).compileComponents()
|
|
||||||
})
|
|
||||||
|
|
||||||
beforeEach(() => {
|
|
||||||
fixture = TestBed.createComponent(SelectDialogComponent)
|
|
||||||
component = fixture.componentInstance
|
|
||||||
fixture.detectChanges()
|
|
||||||
})
|
|
||||||
|
|
||||||
it('should create', () => {
|
|
||||||
expect(component).toBeTruthy()
|
|
||||||
})
|
|
||||||
})
|
|
@ -1,24 +0,0 @@
|
|||||||
import { ComponentFixture, TestBed } from '@angular/core/testing'
|
|
||||||
|
|
||||||
import { TagComponent } from './tag.component'
|
|
||||||
|
|
||||||
describe('TagComponent', () => {
|
|
||||||
let component: TagComponent
|
|
||||||
let fixture: ComponentFixture<TagComponent>
|
|
||||||
|
|
||||||
beforeEach(async () => {
|
|
||||||
await TestBed.configureTestingModule({
|
|
||||||
declarations: [TagComponent],
|
|
||||||
}).compileComponents()
|
|
||||||
})
|
|
||||||
|
|
||||||
beforeEach(() => {
|
|
||||||
fixture = TestBed.createComponent(TagComponent)
|
|
||||||
component = fixture.componentInstance
|
|
||||||
fixture.detectChanges()
|
|
||||||
})
|
|
||||||
|
|
||||||
it('should create', () => {
|
|
||||||
expect(component).toBeTruthy()
|
|
||||||
})
|
|
||||||
})
|
|
@ -1,24 +0,0 @@
|
|||||||
import { ComponentFixture, TestBed } from '@angular/core/testing'
|
|
||||||
|
|
||||||
import { ToastsComponent } from './toasts.component'
|
|
||||||
|
|
||||||
describe('ToastsComponent', () => {
|
|
||||||
let component: ToastsComponent
|
|
||||||
let fixture: ComponentFixture<ToastsComponent>
|
|
||||||
|
|
||||||
beforeEach(async () => {
|
|
||||||
await TestBed.configureTestingModule({
|
|
||||||
declarations: [ToastsComponent],
|
|
||||||
}).compileComponents()
|
|
||||||
})
|
|
||||||
|
|
||||||
beforeEach(() => {
|
|
||||||
fixture = TestBed.createComponent(ToastsComponent)
|
|
||||||
component = fixture.componentInstance
|
|
||||||
fixture.detectChanges()
|
|
||||||
})
|
|
||||||
|
|
||||||
it('should create', () => {
|
|
||||||
expect(component).toBeTruthy()
|
|
||||||
})
|
|
||||||
})
|
|
@ -1,24 +0,0 @@
|
|||||||
import { ComponentFixture, TestBed } from '@angular/core/testing'
|
|
||||||
|
|
||||||
import { DashboardComponent } from './dashboard.component'
|
|
||||||
|
|
||||||
describe('DashboardComponent', () => {
|
|
||||||
let component: DashboardComponent
|
|
||||||
let fixture: ComponentFixture<DashboardComponent>
|
|
||||||
|
|
||||||
beforeEach(async () => {
|
|
||||||
await TestBed.configureTestingModule({
|
|
||||||
declarations: [DashboardComponent],
|
|
||||||
}).compileComponents()
|
|
||||||
})
|
|
||||||
|
|
||||||
beforeEach(() => {
|
|
||||||
fixture = TestBed.createComponent(DashboardComponent)
|
|
||||||
component = fixture.componentInstance
|
|
||||||
fixture.detectChanges()
|
|
||||||
})
|
|
||||||
|
|
||||||
it('should create', () => {
|
|
||||||
expect(component).toBeTruthy()
|
|
||||||
})
|
|
||||||
})
|
|
@ -1,24 +0,0 @@
|
|||||||
import { ComponentFixture, TestBed } from '@angular/core/testing'
|
|
||||||
|
|
||||||
import { SavedViewWidgetComponent } from './saved-view-widget.component'
|
|
||||||
|
|
||||||
describe('SavedViewWidgetComponent', () => {
|
|
||||||
let component: SavedViewWidgetComponent
|
|
||||||
let fixture: ComponentFixture<SavedViewWidgetComponent>
|
|
||||||
|
|
||||||
beforeEach(async () => {
|
|
||||||
await TestBed.configureTestingModule({
|
|
||||||
declarations: [SavedViewWidgetComponent],
|
|
||||||
}).compileComponents()
|
|
||||||
})
|
|
||||||
|
|
||||||
beforeEach(() => {
|
|
||||||
fixture = TestBed.createComponent(SavedViewWidgetComponent)
|
|
||||||
component = fixture.componentInstance
|
|
||||||
fixture.detectChanges()
|
|
||||||
})
|
|
||||||
|
|
||||||
it('should create', () => {
|
|
||||||
expect(component).toBeTruthy()
|
|
||||||
})
|
|
||||||
})
|
|
@ -1,24 +0,0 @@
|
|||||||
import { ComponentFixture, TestBed } from '@angular/core/testing'
|
|
||||||
|
|
||||||
import { StatisticsWidgetComponent } from './statistics-widget.component'
|
|
||||||
|
|
||||||
describe('StatisticsWidgetComponent', () => {
|
|
||||||
let component: StatisticsWidgetComponent
|
|
||||||
let fixture: ComponentFixture<StatisticsWidgetComponent>
|
|
||||||
|
|
||||||
beforeEach(async () => {
|
|
||||||
await TestBed.configureTestingModule({
|
|
||||||
declarations: [StatisticsWidgetComponent],
|
|
||||||
}).compileComponents()
|
|
||||||
})
|
|
||||||
|
|
||||||
beforeEach(() => {
|
|
||||||
fixture = TestBed.createComponent(StatisticsWidgetComponent)
|
|
||||||
component = fixture.componentInstance
|
|
||||||
fixture.detectChanges()
|
|
||||||
})
|
|
||||||
|
|
||||||
it('should create', () => {
|
|
||||||
expect(component).toBeTruthy()
|
|
||||||
})
|
|
||||||
})
|
|
@ -1,24 +0,0 @@
|
|||||||
import { ComponentFixture, TestBed } from '@angular/core/testing'
|
|
||||||
|
|
||||||
import { UploadFileWidgetComponent } from './upload-file-widget.component'
|
|
||||||
|
|
||||||
describe('UploadFileWidgetComponent', () => {
|
|
||||||
let component: UploadFileWidgetComponent
|
|
||||||
let fixture: ComponentFixture<UploadFileWidgetComponent>
|
|
||||||
|
|
||||||
beforeEach(async () => {
|
|
||||||
await TestBed.configureTestingModule({
|
|
||||||
declarations: [UploadFileWidgetComponent],
|
|
||||||
}).compileComponents()
|
|
||||||
})
|
|
||||||
|
|
||||||
beforeEach(() => {
|
|
||||||
fixture = TestBed.createComponent(UploadFileWidgetComponent)
|
|
||||||
component = fixture.componentInstance
|
|
||||||
fixture.detectChanges()
|
|
||||||
})
|
|
||||||
|
|
||||||
it('should create', () => {
|
|
||||||
expect(component).toBeTruthy()
|
|
||||||
})
|
|
||||||
})
|
|
@ -1,24 +0,0 @@
|
|||||||
import { ComponentFixture, TestBed } from '@angular/core/testing'
|
|
||||||
|
|
||||||
import { WelcomeWidgetComponent } from './welcome-widget.component'
|
|
||||||
|
|
||||||
describe('WelcomeWidgetComponent', () => {
|
|
||||||
let component: WelcomeWidgetComponent
|
|
||||||
let fixture: ComponentFixture<WelcomeWidgetComponent>
|
|
||||||
|
|
||||||
beforeEach(async () => {
|
|
||||||
await TestBed.configureTestingModule({
|
|
||||||
declarations: [WelcomeWidgetComponent],
|
|
||||||
}).compileComponents()
|
|
||||||
})
|
|
||||||
|
|
||||||
beforeEach(() => {
|
|
||||||
fixture = TestBed.createComponent(WelcomeWidgetComponent)
|
|
||||||
component = fixture.componentInstance
|
|
||||||
fixture.detectChanges()
|
|
||||||
})
|
|
||||||
|
|
||||||
it('should create', () => {
|
|
||||||
expect(component).toBeTruthy()
|
|
||||||
})
|
|
||||||
})
|
|
@ -1,24 +0,0 @@
|
|||||||
import { ComponentFixture, TestBed } from '@angular/core/testing'
|
|
||||||
|
|
||||||
import { WidgetFrameComponent } from './widget-frame.component'
|
|
||||||
|
|
||||||
describe('WidgetFrameComponent', () => {
|
|
||||||
let component: WidgetFrameComponent
|
|
||||||
let fixture: ComponentFixture<WidgetFrameComponent>
|
|
||||||
|
|
||||||
beforeEach(async () => {
|
|
||||||
await TestBed.configureTestingModule({
|
|
||||||
declarations: [WidgetFrameComponent],
|
|
||||||
}).compileComponents()
|
|
||||||
})
|
|
||||||
|
|
||||||
beforeEach(() => {
|
|
||||||
fixture = TestBed.createComponent(WidgetFrameComponent)
|
|
||||||
component = fixture.componentInstance
|
|
||||||
fixture.detectChanges()
|
|
||||||
})
|
|
||||||
|
|
||||||
it('should create', () => {
|
|
||||||
expect(component).toBeTruthy()
|
|
||||||
})
|
|
||||||
})
|
|
@ -1,24 +0,0 @@
|
|||||||
import { ComponentFixture, TestBed } from '@angular/core/testing'
|
|
||||||
|
|
||||||
import { DocumentAsnComponent } from './document-asn.component'
|
|
||||||
|
|
||||||
describe('DocumentASNComponentComponent', () => {
|
|
||||||
let component: DocumentAsnComponent
|
|
||||||
let fixture: ComponentFixture<DocumentAsnComponent>
|
|
||||||
|
|
||||||
beforeEach(async () => {
|
|
||||||
await TestBed.configureTestingModule({
|
|
||||||
declarations: [DocumentAsnComponent],
|
|
||||||
}).compileComponents()
|
|
||||||
})
|
|
||||||
|
|
||||||
beforeEach(() => {
|
|
||||||
fixture = TestBed.createComponent(DocumentAsnComponent)
|
|
||||||
component = fixture.componentInstance
|
|
||||||
fixture.detectChanges()
|
|
||||||
})
|
|
||||||
|
|
||||||
it('should create', () => {
|
|
||||||
expect(component).toBeTruthy()
|
|
||||||
})
|
|
||||||
})
|
|
@ -1,24 +0,0 @@
|
|||||||
import { ComponentFixture, TestBed } from '@angular/core/testing'
|
|
||||||
|
|
||||||
import { DocumentDetailComponent } from './document-detail.component'
|
|
||||||
|
|
||||||
describe('DocumentDetailComponent', () => {
|
|
||||||
let component: DocumentDetailComponent
|
|
||||||
let fixture: ComponentFixture<DocumentDetailComponent>
|
|
||||||
|
|
||||||
beforeEach(async () => {
|
|
||||||
await TestBed.configureTestingModule({
|
|
||||||
declarations: [DocumentDetailComponent],
|
|
||||||
}).compileComponents()
|
|
||||||
})
|
|
||||||
|
|
||||||
beforeEach(() => {
|
|
||||||
fixture = TestBed.createComponent(DocumentDetailComponent)
|
|
||||||
component = fixture.componentInstance
|
|
||||||
fixture.detectChanges()
|
|
||||||
})
|
|
||||||
|
|
||||||
it('should create', () => {
|
|
||||||
expect(component).toBeTruthy()
|
|
||||||
})
|
|
||||||
})
|
|
@ -1,24 +0,0 @@
|
|||||||
import { ComponentFixture, TestBed } from '@angular/core/testing'
|
|
||||||
|
|
||||||
import { MetadataCollapseComponent } from './metadata-collapse.component'
|
|
||||||
|
|
||||||
describe('MetadataCollapseComponent', () => {
|
|
||||||
let component: MetadataCollapseComponent
|
|
||||||
let fixture: ComponentFixture<MetadataCollapseComponent>
|
|
||||||
|
|
||||||
beforeEach(async () => {
|
|
||||||
await TestBed.configureTestingModule({
|
|
||||||
declarations: [MetadataCollapseComponent],
|
|
||||||
}).compileComponents()
|
|
||||||
})
|
|
||||||
|
|
||||||
beforeEach(() => {
|
|
||||||
fixture = TestBed.createComponent(MetadataCollapseComponent)
|
|
||||||
component = fixture.componentInstance
|
|
||||||
fixture.detectChanges()
|
|
||||||
})
|
|
||||||
|
|
||||||
it('should create', () => {
|
|
||||||
expect(component).toBeTruthy()
|
|
||||||
})
|
|
||||||
})
|
|
@ -1,24 +0,0 @@
|
|||||||
import { ComponentFixture, TestBed } from '@angular/core/testing'
|
|
||||||
|
|
||||||
import { BulkEditorComponent } from './bulk-editor.component'
|
|
||||||
|
|
||||||
describe('BulkEditorComponent', () => {
|
|
||||||
let component: BulkEditorComponent
|
|
||||||
let fixture: ComponentFixture<BulkEditorComponent>
|
|
||||||
|
|
||||||
beforeEach(async () => {
|
|
||||||
await TestBed.configureTestingModule({
|
|
||||||
declarations: [BulkEditorComponent],
|
|
||||||
}).compileComponents()
|
|
||||||
})
|
|
||||||
|
|
||||||
beforeEach(() => {
|
|
||||||
fixture = TestBed.createComponent(BulkEditorComponent)
|
|
||||||
component = fixture.componentInstance
|
|
||||||
fixture.detectChanges()
|
|
||||||
})
|
|
||||||
|
|
||||||
it('should create', () => {
|
|
||||||
expect(component).toBeTruthy()
|
|
||||||
})
|
|
||||||
})
|
|
@ -1,24 +0,0 @@
|
|||||||
import { ComponentFixture, TestBed } from '@angular/core/testing'
|
|
||||||
|
|
||||||
import { DocumentCardLargeComponent } from './document-card-large.component'
|
|
||||||
|
|
||||||
describe('DocumentCardLargeComponent', () => {
|
|
||||||
let component: DocumentCardLargeComponent
|
|
||||||
let fixture: ComponentFixture<DocumentCardLargeComponent>
|
|
||||||
|
|
||||||
beforeEach(async () => {
|
|
||||||
await TestBed.configureTestingModule({
|
|
||||||
declarations: [DocumentCardLargeComponent],
|
|
||||||
}).compileComponents()
|
|
||||||
})
|
|
||||||
|
|
||||||
beforeEach(() => {
|
|
||||||
fixture = TestBed.createComponent(DocumentCardLargeComponent)
|
|
||||||
component = fixture.componentInstance
|
|
||||||
fixture.detectChanges()
|
|
||||||
})
|
|
||||||
|
|
||||||
it('should create', () => {
|
|
||||||
expect(component).toBeTruthy()
|
|
||||||
})
|
|
||||||
})
|
|
@ -1,24 +0,0 @@
|
|||||||
import { ComponentFixture, TestBed } from '@angular/core/testing'
|
|
||||||
|
|
||||||
import { DocumentCardSmallComponent } from './document-card-small.component'
|
|
||||||
|
|
||||||
describe('DocumentCardSmallComponent', () => {
|
|
||||||
let component: DocumentCardSmallComponent
|
|
||||||
let fixture: ComponentFixture<DocumentCardSmallComponent>
|
|
||||||
|
|
||||||
beforeEach(async () => {
|
|
||||||
await TestBed.configureTestingModule({
|
|
||||||
declarations: [DocumentCardSmallComponent],
|
|
||||||
}).compileComponents()
|
|
||||||
})
|
|
||||||
|
|
||||||
beforeEach(() => {
|
|
||||||
fixture = TestBed.createComponent(DocumentCardSmallComponent)
|
|
||||||
component = fixture.componentInstance
|
|
||||||
fixture.detectChanges()
|
|
||||||
})
|
|
||||||
|
|
||||||
it('should create', () => {
|
|
||||||
expect(component).toBeTruthy()
|
|
||||||
})
|
|
||||||
})
|
|
@ -1,24 +0,0 @@
|
|||||||
import { ComponentFixture, TestBed } from '@angular/core/testing'
|
|
||||||
|
|
||||||
import { DocumentListComponent } from './document-list.component'
|
|
||||||
|
|
||||||
describe('DocumentListComponent', () => {
|
|
||||||
let component: DocumentListComponent
|
|
||||||
let fixture: ComponentFixture<DocumentListComponent>
|
|
||||||
|
|
||||||
beforeEach(async () => {
|
|
||||||
await TestBed.configureTestingModule({
|
|
||||||
declarations: [DocumentListComponent],
|
|
||||||
}).compileComponents()
|
|
||||||
})
|
|
||||||
|
|
||||||
beforeEach(() => {
|
|
||||||
fixture = TestBed.createComponent(DocumentListComponent)
|
|
||||||
component = fixture.componentInstance
|
|
||||||
fixture.detectChanges()
|
|
||||||
})
|
|
||||||
|
|
||||||
it('should create', () => {
|
|
||||||
expect(component).toBeTruthy()
|
|
||||||
})
|
|
||||||
})
|
|
@ -1,24 +0,0 @@
|
|||||||
import { ComponentFixture, TestBed } from '@angular/core/testing'
|
|
||||||
|
|
||||||
import { FilterEditorComponent } from './filter-editor.component'
|
|
||||||
|
|
||||||
describe('FilterEditorComponent', () => {
|
|
||||||
let component: FilterEditorComponent
|
|
||||||
let fixture: ComponentFixture<FilterEditorComponent>
|
|
||||||
|
|
||||||
beforeEach(async () => {
|
|
||||||
await TestBed.configureTestingModule({
|
|
||||||
declarations: [FilterEditorComponent],
|
|
||||||
}).compileComponents()
|
|
||||||
})
|
|
||||||
|
|
||||||
beforeEach(() => {
|
|
||||||
fixture = TestBed.createComponent(FilterEditorComponent)
|
|
||||||
component = fixture.componentInstance
|
|
||||||
fixture.detectChanges()
|
|
||||||
})
|
|
||||||
|
|
||||||
it('should create', () => {
|
|
||||||
expect(component).toBeTruthy()
|
|
||||||
})
|
|
||||||
})
|
|
@ -1,24 +0,0 @@
|
|||||||
import { ComponentFixture, TestBed } from '@angular/core/testing'
|
|
||||||
|
|
||||||
import { SaveViewConfigDialogComponent } from './save-view-config-dialog.component'
|
|
||||||
|
|
||||||
describe('SaveViewConfigDialogComponent', () => {
|
|
||||||
let component: SaveViewConfigDialogComponent
|
|
||||||
let fixture: ComponentFixture<SaveViewConfigDialogComponent>
|
|
||||||
|
|
||||||
beforeEach(async () => {
|
|
||||||
await TestBed.configureTestingModule({
|
|
||||||
declarations: [SaveViewConfigDialogComponent],
|
|
||||||
}).compileComponents()
|
|
||||||
})
|
|
||||||
|
|
||||||
beforeEach(() => {
|
|
||||||
fixture = TestBed.createComponent(SaveViewConfigDialogComponent)
|
|
||||||
component = fixture.componentInstance
|
|
||||||
fixture.detectChanges()
|
|
||||||
})
|
|
||||||
|
|
||||||
it('should create', () => {
|
|
||||||
expect(component).toBeTruthy()
|
|
||||||
})
|
|
||||||
})
|
|
@ -1,24 +0,0 @@
|
|||||||
import { ComponentFixture, TestBed } from '@angular/core/testing'
|
|
||||||
|
|
||||||
import { CorrespondentEditDialogComponent } from './correspondent-edit-dialog.component'
|
|
||||||
|
|
||||||
describe('CorrespondentEditDialogComponent', () => {
|
|
||||||
let component: CorrespondentEditDialogComponent
|
|
||||||
let fixture: ComponentFixture<CorrespondentEditDialogComponent>
|
|
||||||
|
|
||||||
beforeEach(async () => {
|
|
||||||
await TestBed.configureTestingModule({
|
|
||||||
declarations: [CorrespondentEditDialogComponent],
|
|
||||||
}).compileComponents()
|
|
||||||
})
|
|
||||||
|
|
||||||
beforeEach(() => {
|
|
||||||
fixture = TestBed.createComponent(CorrespondentEditDialogComponent)
|
|
||||||
component = fixture.componentInstance
|
|
||||||
fixture.detectChanges()
|
|
||||||
})
|
|
||||||
|
|
||||||
it('should create', () => {
|
|
||||||
expect(component).toBeTruthy()
|
|
||||||
})
|
|
||||||
})
|
|
@ -1,24 +0,0 @@
|
|||||||
import { ComponentFixture, TestBed } from '@angular/core/testing'
|
|
||||||
|
|
||||||
import { CorrespondentListComponent } from './correspondent-list.component'
|
|
||||||
|
|
||||||
describe('CorrespondentListComponent', () => {
|
|
||||||
let component: CorrespondentListComponent
|
|
||||||
let fixture: ComponentFixture<CorrespondentListComponent>
|
|
||||||
|
|
||||||
beforeEach(async () => {
|
|
||||||
await TestBed.configureTestingModule({
|
|
||||||
declarations: [CorrespondentListComponent],
|
|
||||||
}).compileComponents()
|
|
||||||
})
|
|
||||||
|
|
||||||
beforeEach(() => {
|
|
||||||
fixture = TestBed.createComponent(CorrespondentListComponent)
|
|
||||||
component = fixture.componentInstance
|
|
||||||
fixture.detectChanges()
|
|
||||||
})
|
|
||||||
|
|
||||||
it('should create', () => {
|
|
||||||
expect(component).toBeTruthy()
|
|
||||||
})
|
|
||||||
})
|
|
@ -1,24 +0,0 @@
|
|||||||
import { ComponentFixture, TestBed } from '@angular/core/testing'
|
|
||||||
|
|
||||||
import { DocumentTypeEditDialogComponent } from './document-type-edit-dialog.component'
|
|
||||||
|
|
||||||
describe('DocumentTypeEditDialogComponent', () => {
|
|
||||||
let component: DocumentTypeEditDialogComponent
|
|
||||||
let fixture: ComponentFixture<DocumentTypeEditDialogComponent>
|
|
||||||
|
|
||||||
beforeEach(async () => {
|
|
||||||
await TestBed.configureTestingModule({
|
|
||||||
declarations: [DocumentTypeEditDialogComponent],
|
|
||||||
}).compileComponents()
|
|
||||||
})
|
|
||||||
|
|
||||||
beforeEach(() => {
|
|
||||||
fixture = TestBed.createComponent(DocumentTypeEditDialogComponent)
|
|
||||||
component = fixture.componentInstance
|
|
||||||
fixture.detectChanges()
|
|
||||||
})
|
|
||||||
|
|
||||||
it('should create', () => {
|
|
||||||
expect(component).toBeTruthy()
|
|
||||||
})
|
|
||||||
})
|
|
@ -1,24 +0,0 @@
|
|||||||
import { ComponentFixture, TestBed } from '@angular/core/testing'
|
|
||||||
|
|
||||||
import { DocumentTypeListComponent } from './document-type-list.component'
|
|
||||||
|
|
||||||
describe('DocumentTypeListComponent', () => {
|
|
||||||
let component: DocumentTypeListComponent
|
|
||||||
let fixture: ComponentFixture<DocumentTypeListComponent>
|
|
||||||
|
|
||||||
beforeEach(async () => {
|
|
||||||
await TestBed.configureTestingModule({
|
|
||||||
declarations: [DocumentTypeListComponent],
|
|
||||||
}).compileComponents()
|
|
||||||
})
|
|
||||||
|
|
||||||
beforeEach(() => {
|
|
||||||
fixture = TestBed.createComponent(DocumentTypeListComponent)
|
|
||||||
component = fixture.componentInstance
|
|
||||||
fixture.detectChanges()
|
|
||||||
})
|
|
||||||
|
|
||||||
it('should create', () => {
|
|
||||||
expect(component).toBeTruthy()
|
|
||||||
})
|
|
||||||
})
|
|
@ -1,24 +0,0 @@
|
|||||||
import { ComponentFixture, TestBed } from '@angular/core/testing'
|
|
||||||
|
|
||||||
import { GenericListComponent } from './generic-list.component'
|
|
||||||
|
|
||||||
describe('GenericListComponent', () => {
|
|
||||||
let component: GenericListComponent
|
|
||||||
let fixture: ComponentFixture<GenericListComponent>
|
|
||||||
|
|
||||||
beforeEach(async () => {
|
|
||||||
await TestBed.configureTestingModule({
|
|
||||||
declarations: [GenericListComponent],
|
|
||||||
}).compileComponents()
|
|
||||||
})
|
|
||||||
|
|
||||||
beforeEach(() => {
|
|
||||||
fixture = TestBed.createComponent(GenericListComponent)
|
|
||||||
component = fixture.componentInstance
|
|
||||||
fixture.detectChanges()
|
|
||||||
})
|
|
||||||
|
|
||||||
it('should create', () => {
|
|
||||||
expect(component).toBeTruthy()
|
|
||||||
})
|
|
||||||
})
|
|
@ -1,24 +0,0 @@
|
|||||||
import { ComponentFixture, TestBed } from '@angular/core/testing'
|
|
||||||
|
|
||||||
import { LogsComponent } from './logs.component'
|
|
||||||
|
|
||||||
describe('LogsComponent', () => {
|
|
||||||
let component: LogsComponent
|
|
||||||
let fixture: ComponentFixture<LogsComponent>
|
|
||||||
|
|
||||||
beforeEach(async () => {
|
|
||||||
await TestBed.configureTestingModule({
|
|
||||||
declarations: [LogsComponent],
|
|
||||||
}).compileComponents()
|
|
||||||
})
|
|
||||||
|
|
||||||
beforeEach(() => {
|
|
||||||
fixture = TestBed.createComponent(LogsComponent)
|
|
||||||
component = fixture.componentInstance
|
|
||||||
fixture.detectChanges()
|
|
||||||
})
|
|
||||||
|
|
||||||
it('should create', () => {
|
|
||||||
expect(component).toBeTruthy()
|
|
||||||
})
|
|
||||||
})
|
|
@ -1,24 +0,0 @@
|
|||||||
import { ComponentFixture, TestBed } from '@angular/core/testing'
|
|
||||||
|
|
||||||
import { SettingsComponent } from './settings.component'
|
|
||||||
|
|
||||||
describe('SettingsComponent', () => {
|
|
||||||
let component: SettingsComponent
|
|
||||||
let fixture: ComponentFixture<SettingsComponent>
|
|
||||||
|
|
||||||
beforeEach(async () => {
|
|
||||||
await TestBed.configureTestingModule({
|
|
||||||
declarations: [SettingsComponent],
|
|
||||||
}).compileComponents()
|
|
||||||
})
|
|
||||||
|
|
||||||
beforeEach(() => {
|
|
||||||
fixture = TestBed.createComponent(SettingsComponent)
|
|
||||||
component = fixture.componentInstance
|
|
||||||
fixture.detectChanges()
|
|
||||||
})
|
|
||||||
|
|
||||||
it('should create', () => {
|
|
||||||
expect(component).toBeTruthy()
|
|
||||||
})
|
|
||||||
})
|
|
@ -1,24 +0,0 @@
|
|||||||
import { ComponentFixture, TestBed } from '@angular/core/testing'
|
|
||||||
|
|
||||||
import { TagEditDialogComponent } from './tag-edit-dialog.component'
|
|
||||||
|
|
||||||
describe('TagEditDialogComponent', () => {
|
|
||||||
let component: TagEditDialogComponent
|
|
||||||
let fixture: ComponentFixture<TagEditDialogComponent>
|
|
||||||
|
|
||||||
beforeEach(async () => {
|
|
||||||
await TestBed.configureTestingModule({
|
|
||||||
declarations: [TagEditDialogComponent],
|
|
||||||
}).compileComponents()
|
|
||||||
})
|
|
||||||
|
|
||||||
beforeEach(() => {
|
|
||||||
fixture = TestBed.createComponent(TagEditDialogComponent)
|
|
||||||
component = fixture.componentInstance
|
|
||||||
fixture.detectChanges()
|
|
||||||
})
|
|
||||||
|
|
||||||
it('should create', () => {
|
|
||||||
expect(component).toBeTruthy()
|
|
||||||
})
|
|
||||||
})
|
|
@ -1,24 +0,0 @@
|
|||||||
import { ComponentFixture, TestBed } from '@angular/core/testing'
|
|
||||||
|
|
||||||
import { TagListComponent } from './tag-list.component'
|
|
||||||
|
|
||||||
describe('TagListComponent', () => {
|
|
||||||
let component: TagListComponent
|
|
||||||
let fixture: ComponentFixture<TagListComponent>
|
|
||||||
|
|
||||||
beforeEach(async () => {
|
|
||||||
await TestBed.configureTestingModule({
|
|
||||||
declarations: [TagListComponent],
|
|
||||||
}).compileComponents()
|
|
||||||
})
|
|
||||||
|
|
||||||
beforeEach(() => {
|
|
||||||
fixture = TestBed.createComponent(TagListComponent)
|
|
||||||
component = fixture.componentInstance
|
|
||||||
fixture.detectChanges()
|
|
||||||
})
|
|
||||||
|
|
||||||
it('should create', () => {
|
|
||||||
expect(component).toBeTruthy()
|
|
||||||
})
|
|
||||||
})
|
|
@ -1,24 +0,0 @@
|
|||||||
import { ComponentFixture, TestBed } from '@angular/core/testing'
|
|
||||||
|
|
||||||
import { NotFoundComponent } from './not-found.component'
|
|
||||||
|
|
||||||
describe('NotFoundComponent', () => {
|
|
||||||
let component: NotFoundComponent
|
|
||||||
let fixture: ComponentFixture<NotFoundComponent>
|
|
||||||
|
|
||||||
beforeEach(async () => {
|
|
||||||
await TestBed.configureTestingModule({
|
|
||||||
declarations: [NotFoundComponent],
|
|
||||||
}).compileComponents()
|
|
||||||
})
|
|
||||||
|
|
||||||
beforeEach(() => {
|
|
||||||
fixture = TestBed.createComponent(NotFoundComponent)
|
|
||||||
component = fixture.componentInstance
|
|
||||||
fixture.detectChanges()
|
|
||||||
})
|
|
||||||
|
|
||||||
it('should create', () => {
|
|
||||||
expect(component).toBeTruthy()
|
|
||||||
})
|
|
||||||
})
|
|
@ -1,18 +0,0 @@
|
|||||||
import { TestBed } from '@angular/core/testing'
|
|
||||||
|
|
||||||
import { ApiVersionInterceptor } from './api-version.interceptor'
|
|
||||||
|
|
||||||
describe('ApiVersionInterceptor', () => {
|
|
||||||
beforeEach(() =>
|
|
||||||
TestBed.configureTestingModule({
|
|
||||||
providers: [ApiVersionInterceptor],
|
|
||||||
})
|
|
||||||
)
|
|
||||||
|
|
||||||
it('should be created', () => {
|
|
||||||
const interceptor: ApiVersionInterceptor = TestBed.inject(
|
|
||||||
ApiVersionInterceptor
|
|
||||||
)
|
|
||||||
expect(interceptor).toBeTruthy()
|
|
||||||
})
|
|
||||||
})
|
|
@ -1,8 +0,0 @@
|
|||||||
import { CustomDatePipe } from './custom-date.pipe'
|
|
||||||
|
|
||||||
describe('CustomDatePipe', () => {
|
|
||||||
it('create an instance', () => {
|
|
||||||
const pipe = new CustomDatePipe()
|
|
||||||
expect(pipe).toBeTruthy()
|
|
||||||
})
|
|
||||||
})
|
|
@ -1,8 +0,0 @@
|
|||||||
import { SafePipe } from './safe.pipe'
|
|
||||||
|
|
||||||
describe('SafePipe', () => {
|
|
||||||
it('create an instance', () => {
|
|
||||||
const pipe = new SafePipe()
|
|
||||||
expect(pipe).toBeTruthy()
|
|
||||||
})
|
|
||||||
})
|
|
@ -1,16 +0,0 @@
|
|||||||
import { TestBed } from '@angular/core/testing'
|
|
||||||
|
|
||||||
import { ConsumerStatusService } from './consumer-status.service'
|
|
||||||
|
|
||||||
describe('ConsumerStatusService', () => {
|
|
||||||
let service: ConsumerStatusService
|
|
||||||
|
|
||||||
beforeEach(() => {
|
|
||||||
TestBed.configureTestingModule({})
|
|
||||||
service = TestBed.inject(ConsumerStatusService)
|
|
||||||
})
|
|
||||||
|
|
||||||
it('should be created', () => {
|
|
||||||
expect(service).toBeTruthy()
|
|
||||||
})
|
|
||||||
})
|
|
@ -1,16 +0,0 @@
|
|||||||
import { TestBed } from '@angular/core/testing'
|
|
||||||
|
|
||||||
import { DocumentListViewService } from './document-list-view.service'
|
|
||||||
|
|
||||||
describe('DocumentListViewService', () => {
|
|
||||||
let service: DocumentListViewService
|
|
||||||
|
|
||||||
beforeEach(() => {
|
|
||||||
TestBed.configureTestingModule({})
|
|
||||||
service = TestBed.inject(DocumentListViewService)
|
|
||||||
})
|
|
||||||
|
|
||||||
it('should be created', () => {
|
|
||||||
expect(service).toBeTruthy()
|
|
||||||
})
|
|
||||||
})
|
|
@ -1,16 +0,0 @@
|
|||||||
import { TestBed } from '@angular/core/testing'
|
|
||||||
|
|
||||||
import { OpenDocumentsService } from './open-documents.service'
|
|
||||||
|
|
||||||
describe('OpenDocumentsService', () => {
|
|
||||||
let service: OpenDocumentsService
|
|
||||||
|
|
||||||
beforeEach(() => {
|
|
||||||
TestBed.configureTestingModule({})
|
|
||||||
service = TestBed.inject(OpenDocumentsService)
|
|
||||||
})
|
|
||||||
|
|
||||||
it('should be created', () => {
|
|
||||||
expect(service).toBeTruthy()
|
|
||||||
})
|
|
||||||
})
|
|
@ -1,7 +0,0 @@
|
|||||||
import { AbstractPaperlessService } from './abstract-paperless-service'
|
|
||||||
|
|
||||||
describe('AbstractPaperlessService', () => {
|
|
||||||
it('should create an instance', () => {
|
|
||||||
expect(new AbstractPaperlessService()).toBeTruthy()
|
|
||||||
})
|
|
||||||
})
|
|
@ -1,16 +0,0 @@
|
|||||||
import { TestBed } from '@angular/core/testing'
|
|
||||||
|
|
||||||
import { CorrespondentService } from './correspondent.service'
|
|
||||||
|
|
||||||
describe('CorrespondentService', () => {
|
|
||||||
let service: CorrespondentService
|
|
||||||
|
|
||||||
beforeEach(() => {
|
|
||||||
TestBed.configureTestingModule({})
|
|
||||||
service = TestBed.inject(CorrespondentService)
|
|
||||||
})
|
|
||||||
|
|
||||||
it('should be created', () => {
|
|
||||||
expect(service).toBeTruthy()
|
|
||||||
})
|
|
||||||
})
|
|
@ -1,16 +0,0 @@
|
|||||||
import { TestBed } from '@angular/core/testing'
|
|
||||||
|
|
||||||
import { DocumentTypeService } from './document-type.service'
|
|
||||||
|
|
||||||
describe('DocumentTypeService', () => {
|
|
||||||
let service: DocumentTypeService
|
|
||||||
|
|
||||||
beforeEach(() => {
|
|
||||||
TestBed.configureTestingModule({})
|
|
||||||
service = TestBed.inject(DocumentTypeService)
|
|
||||||
})
|
|
||||||
|
|
||||||
it('should be created', () => {
|
|
||||||
expect(service).toBeTruthy()
|
|
||||||
})
|
|
||||||
})
|
|
@ -1,16 +0,0 @@
|
|||||||
import { TestBed } from '@angular/core/testing'
|
|
||||||
|
|
||||||
import { DocumentService } from './document.service'
|
|
||||||
|
|
||||||
describe('DocumentService', () => {
|
|
||||||
let service: DocumentService
|
|
||||||
|
|
||||||
beforeEach(() => {
|
|
||||||
TestBed.configureTestingModule({})
|
|
||||||
service = TestBed.inject(DocumentService)
|
|
||||||
})
|
|
||||||
|
|
||||||
it('should be created', () => {
|
|
||||||
expect(service).toBeTruthy()
|
|
||||||
})
|
|
||||||
})
|
|
@ -1,16 +0,0 @@
|
|||||||
import { TestBed } from '@angular/core/testing'
|
|
||||||
|
|
||||||
import { LogService } from './log.service'
|
|
||||||
|
|
||||||
describe('LogService', () => {
|
|
||||||
let service: LogService
|
|
||||||
|
|
||||||
beforeEach(() => {
|
|
||||||
TestBed.configureTestingModule({})
|
|
||||||
service = TestBed.inject(LogService)
|
|
||||||
})
|
|
||||||
|
|
||||||
it('should be created', () => {
|
|
||||||
expect(service).toBeTruthy()
|
|
||||||
})
|
|
||||||
})
|
|
@ -1,16 +0,0 @@
|
|||||||
import { TestBed } from '@angular/core/testing'
|
|
||||||
|
|
||||||
import { SavedViewService } from './saved-view.service'
|
|
||||||
|
|
||||||
describe('SavedViewService', () => {
|
|
||||||
let service: SavedViewService
|
|
||||||
|
|
||||||
beforeEach(() => {
|
|
||||||
TestBed.configureTestingModule({})
|
|
||||||
service = TestBed.inject(SavedViewService)
|
|
||||||
})
|
|
||||||
|
|
||||||
it('should be created', () => {
|
|
||||||
expect(service).toBeTruthy()
|
|
||||||
})
|
|
||||||
})
|
|
@ -1,16 +0,0 @@
|
|||||||
import { TestBed } from '@angular/core/testing'
|
|
||||||
|
|
||||||
import { SearchService } from './search.service'
|
|
||||||
|
|
||||||
describe('SearchService', () => {
|
|
||||||
let service: SearchService
|
|
||||||
|
|
||||||
beforeEach(() => {
|
|
||||||
TestBed.configureTestingModule({})
|
|
||||||
service = TestBed.inject(SearchService)
|
|
||||||
})
|
|
||||||
|
|
||||||
it('should be created', () => {
|
|
||||||
expect(service).toBeTruthy()
|
|
||||||
})
|
|
||||||
})
|
|
@ -1,16 +0,0 @@
|
|||||||
import { TestBed } from '@angular/core/testing'
|
|
||||||
|
|
||||||
import { TagService } from './tag.service'
|
|
||||||
|
|
||||||
describe('TagService', () => {
|
|
||||||
let service: TagService
|
|
||||||
|
|
||||||
beforeEach(() => {
|
|
||||||
TestBed.configureTestingModule({})
|
|
||||||
service = TestBed.inject(TagService)
|
|
||||||
})
|
|
||||||
|
|
||||||
it('should be created', () => {
|
|
||||||
expect(service).toBeTruthy()
|
|
||||||
})
|
|
||||||
})
|
|
@ -1,16 +0,0 @@
|
|||||||
import { TestBed } from '@angular/core/testing'
|
|
||||||
|
|
||||||
import { SettingsService } from './settings.service'
|
|
||||||
|
|
||||||
describe('SettingsService', () => {
|
|
||||||
let service: SettingsService
|
|
||||||
|
|
||||||
beforeEach(() => {
|
|
||||||
TestBed.configureTestingModule({})
|
|
||||||
service = TestBed.inject(SettingsService)
|
|
||||||
})
|
|
||||||
|
|
||||||
it('should be created', () => {
|
|
||||||
expect(service).toBeTruthy()
|
|
||||||
})
|
|
||||||
})
|
|
@ -1,16 +0,0 @@
|
|||||||
import { TestBed } from '@angular/core/testing'
|
|
||||||
|
|
||||||
import { ToastService } from './toast.service'
|
|
||||||
|
|
||||||
describe('ToastService', () => {
|
|
||||||
let service: ToastService
|
|
||||||
|
|
||||||
beforeEach(() => {
|
|
||||||
TestBed.configureTestingModule({})
|
|
||||||
service = TestBed.inject(ToastService)
|
|
||||||
})
|
|
||||||
|
|
||||||
it('should be created', () => {
|
|
||||||
expect(service).toBeTruthy()
|
|
||||||
})
|
|
||||||
})
|
|
Loading…
x
Reference in New Issue
Block a user