diff --git a/frontend/src/app/document-view/document-view.component.html b/frontend/src/app/document-view/document-view.component.html
index dde15325d..c7505664b 100644
--- a/frontend/src/app/document-view/document-view.component.html
+++ b/frontend/src/app/document-view/document-view.component.html
@@ -29,7 +29,7 @@
-
+
diff --git a/frontend/src/app/document-view/document-view.component.spec.ts b/frontend/src/app/document-view/document-view.component.spec.ts
index 863dd2631..6fa470a3a 100644
--- a/frontend/src/app/document-view/document-view.component.spec.ts
+++ b/frontend/src/app/document-view/document-view.component.spec.ts
@@ -41,4 +41,11 @@ describe('DocumentViewComponent', () => {
const element = debug[0].nativeElement;
expect(element.textContent).toBe('Hello world!');
});
+
+ it('should create tabs', () => {
+ const debug = fixture.debugElement.queryAll(By.css('a[role=tab]'));
+ expect(debug.length).toBe(2);
+ expect(debug[0].attributes['id']).toBe('tab-speech');
+ expect(debug[1].attributes['id']).toBe('tab-scan');
+ });
});
diff --git a/frontend/src/app/services/corpus.service.spec.ts b/frontend/src/app/services/corpus.service.spec.ts
index 26364246a..3d4d30dff 100644
--- a/frontend/src/app/services/corpus.service.spec.ts
+++ b/frontend/src/app/services/corpus.service.spec.ts
@@ -199,6 +199,8 @@ describe('CorpusService', () => {
expect(items.length).toBe(1);
const corpus = _.first(items);
+ expect(corpus.scan_image_type).toBe('png');
+
const fieldData = [
{
description: 'Banking concern to which the report belongs.',
@@ -275,6 +277,7 @@ describe('CorpusService', () => {
expect(result[key]).toEqual(expected[key]);
});
});
+
});
});
});