Skip to content
Snippets Groups Projects
Commit 16b3d78c authored by paf's avatar paf
Browse files

fix unit tests

parent afa2a134
No related branches found
No related tags found
No related merge requests found
......@@ -8,26 +8,26 @@ import {BookletService} from '../booklet.service';
const exampleBooklet: Booklet = { // labels are: {global index}-{ancestor index}-{local index}
config: undefined,
metadata: undefined,
units: {id: 'root', label: 'Root', children: [
units: {id: 'root', label: 'Root', descendantCount: 10, children: [
{id: 'unit-1', label: '0-0-0', labelShort: 'unit'},
{id: 'zara', label: 'Testlet-0', children: []},
{id: 'zara', label: 'Testlet-0', children: [], descendantCount: 6},
{id: 'unit-2', label: '1-1-1', labelShort: 'unit'},
{id: 'alf', label: 'Testlet-1', children: [
{id: 'alf', label: 'Testlet-1', descendantCount: 4, children: [
{id: 'unit-3', label: '2-0-0', labelShort: 'unit'},
{id: 'ben', label: 'Testlet-2', children: [
{id: 'ben', label: 'Testlet-2', descendantCount: 3, children: [
{id: 'unit-4', label: '3-1-0', labelShort: 'unit'},
{id: 'cara', label: 'Testlet-3', children: []},
{id: 'cara', label: 'Testlet-3', descendantCount: 2, children: []},
{id: 'unit-5', label: '4-2-1', labelShort: 'unit'},
{id: 'dolf', label: 'Testlet-4', children: [
{id: 'dolf', label: 'Testlet-4', descendantCount: 1, children: [
{id: 'unit-6', label: '5-3-0', labelShort: 'unit'},
]},
]},
{id: 'unit-7', label: '6-4-1', labelShort: 'unit'},
]},
{id: 'unit-8', label: '7-2-2', labelShort: 'unit'},
{id: 'ellie', label: 'Testlet-5', children: [
{id: 'ellie', label: 'Testlet-5', descendantCount: 2, children: [
{id: 'unit-9', label: '8-0-0', labelShort: 'unit'},
{id: 'fred', label: 'Testlet-6', children: [
{id: 'fred', label: 'Testlet-6', descendantCount: 1, children: [
{id: 'unit-10', label: '9-1-0', labelShort: 'unit'},
]}
]}
......@@ -60,7 +60,7 @@ class MockBookletService {
}
describe('TestViewComponent', () => {
fdescribe('TestViewComponent', () => {
let component: TestViewComponent;
let fixture: ComponentFixture<TestViewComponent>;
......@@ -82,7 +82,8 @@ describe('TestViewComponent', () => {
fixture = TestBed.createComponent(TestViewComponent);
component = fixture.componentInstance;
component.testStatus = exampleSession;
component.testStatus = exampleSession
component.displayOptions = {groupColumn: undefined, view: undefined};
fixture.detectChanges();
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment