code improvements
This commit is contained in:
@ -1,25 +1,5 @@
|
||||
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
|
||||
import { DocumentationArchitectureComponent } from './documentation-architecture.component';
|
||||
|
||||
describe('DocumentationArchitectureComponent', () => {
|
||||
let component: DocumentationArchitectureComponent;
|
||||
let fixture: ComponentFixture<DocumentationArchitectureComponent>;
|
||||
|
||||
beforeEach(async(() => {
|
||||
TestBed.configureTestingModule({
|
||||
declarations: [ DocumentationArchitectureComponent ]
|
||||
})
|
||||
.compileComponents();
|
||||
}));
|
||||
|
||||
beforeEach(() => {
|
||||
fixture = TestBed.createComponent(DocumentationArchitectureComponent);
|
||||
component = fixture.componentInstance;
|
||||
fixture.detectChanges();
|
||||
});
|
||||
|
||||
it('should create', () => {
|
||||
expect(component).toBeTruthy();
|
||||
});
|
||||
});
|
||||
|
@ -1,4 +1,3 @@
|
||||
|
||||
<p>
|
||||
The used database instance is a MongoDB instance running on the BIC, storing all application data. The admin database
|
||||
management page can be accessed
|
||||
@ -399,6 +398,11 @@ Every time:
|
||||
<td>The key used to find the required help text</td>
|
||||
<td>'/documentation/database'</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>level</td>
|
||||
<td>The minimum level required to read this help</td>
|
||||
<td>'write'</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>text</td>
|
||||
<td>The actual help text</td>
|
||||
|
@ -1,41 +1,5 @@
|
||||
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
|
||||
import { DocumentationDatabaseComponent } from './documentation-database.component';
|
||||
import {Component, Input} from '@angular/core';
|
||||
import {RbCustomInputsModule} from '../../rb-custom-inputs/rb-custom-inputs.module';
|
||||
|
||||
// TODO
|
||||
|
||||
@Component({selector: 'app-img-magnifier', template: ''})
|
||||
class ImgMagnifierStubComponent {
|
||||
@Input() magnifierSize: {width: number, height: number};
|
||||
}
|
||||
|
||||
describe('DocumentationDatabaseComponent', () => {
|
||||
let component: DocumentationDatabaseComponent;
|
||||
let fixture: ComponentFixture<DocumentationDatabaseComponent>;
|
||||
|
||||
beforeEach(async(() => {
|
||||
TestBed.configureTestingModule({
|
||||
declarations: [
|
||||
DocumentationDatabaseComponent,
|
||||
ImgMagnifierStubComponent
|
||||
],
|
||||
imports: [
|
||||
RbCustomInputsModule
|
||||
]
|
||||
})
|
||||
.compileComponents();
|
||||
}));
|
||||
|
||||
beforeEach(() => {
|
||||
fixture = TestBed.createComponent(DocumentationDatabaseComponent);
|
||||
component = fixture.componentInstance;
|
||||
component.ngOnInit();
|
||||
fixture.detectChanges();
|
||||
});
|
||||
|
||||
it('should create', () => {
|
||||
expect(component).toBeTruthy();
|
||||
});
|
||||
});
|
||||
|
@ -1,25 +1,5 @@
|
||||
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
|
||||
import { DocumentationModelsComponent } from './documentation-models.component';
|
||||
|
||||
describe('DocumentationModelsComponent', () => {
|
||||
let component: DocumentationModelsComponent;
|
||||
let fixture: ComponentFixture<DocumentationModelsComponent>;
|
||||
|
||||
beforeEach(async(() => {
|
||||
TestBed.configureTestingModule({
|
||||
declarations: [ DocumentationModelsComponent ]
|
||||
})
|
||||
.compileComponents();
|
||||
}));
|
||||
|
||||
beforeEach(() => {
|
||||
fixture = TestBed.createComponent(DocumentationModelsComponent);
|
||||
component = fixture.componentInstance;
|
||||
fixture.detectChanges();
|
||||
});
|
||||
|
||||
it('should create', () => {
|
||||
expect(component).toBeTruthy();
|
||||
});
|
||||
});
|
||||
|
@ -1,4 +1,3 @@
|
||||
|
||||
<p>
|
||||
<a [href]="api.hostName + '/static/intro-presentation/index.html'">
|
||||
View the presentation explaining the main functions
|
||||
|
@ -1,42 +1,5 @@
|
||||
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
|
||||
import { DocumentationComponent } from './documentation.component';
|
||||
import {RbCustomInputsModule} from '../rb-custom-inputs/rb-custom-inputs.module';
|
||||
import {ApiService} from '../services/api.service';
|
||||
|
||||
// TODO
|
||||
|
||||
let apiServiceSpy: jasmine.SpyObj<ApiService>;
|
||||
|
||||
describe('DocumentationComponent', () => {
|
||||
let component: DocumentationComponent;
|
||||
let fixture: ComponentFixture<DocumentationComponent>;
|
||||
|
||||
beforeEach(async(() => {
|
||||
const apiSpy = jasmine.createSpyObj('ApiService', ['post', 'put']);
|
||||
|
||||
TestBed.configureTestingModule({
|
||||
declarations: [ DocumentationComponent ],
|
||||
imports: [
|
||||
RbCustomInputsModule
|
||||
],
|
||||
providers: [
|
||||
{provide: ApiService, useValue: apiSpy}
|
||||
]
|
||||
})
|
||||
.compileComponents();
|
||||
|
||||
apiServiceSpy = TestBed.inject(ApiService) as jasmine.SpyObj<ApiService>;
|
||||
}));
|
||||
|
||||
beforeEach(() => {
|
||||
fixture = TestBed.createComponent(DocumentationComponent);
|
||||
component = fixture.componentInstance;
|
||||
component.ngOnInit();
|
||||
fixture.detectChanges();
|
||||
});
|
||||
|
||||
it('should create', () => {
|
||||
expect(component).toBeTruthy();
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user