@@ -53,37 +53,35 @@ describe("AnnotationInputComponent", () => {
5353 premises : [ "First premise" , "Second premise" ] ,
5454 hypothesis : "Test hypothesis" ,
5555 entailmentLabel : EntailmentLabel . ENTAILMENT ,
56- annotations : {
57- kbAnnotations : [
58- {
59- id : 456 ,
60- entity1 : "cat" ,
61- entity2 : "animal" ,
62- relationship : KnowledgeBaseRelationship . SUBSET ,
63- createdAt : "" ,
64- createdBy : "" ,
65- removedAt : null ,
66- removedBy : null ,
67- notes : "" ,
68- session : null ,
69- removable : true
70- } ,
71- {
72- id : 789 ,
73- entity1 : "dog" ,
74- entity2 : "pet" ,
75- relationship : KnowledgeBaseRelationship . EQUAL ,
76- createdAt : "" ,
77- createdBy : "" ,
78- removedAt : null ,
79- removedBy : null ,
80- notes : "" ,
81- session : null ,
82- removable : true
83- }
84- ] ,
85- labelAnnotations : [ ]
86- } ,
56+ kbAnnotations : [
57+ {
58+ id : 456 ,
59+ entity1 : "cat" ,
60+ entity2 : "animal" ,
61+ relationship : KnowledgeBaseRelationship . SUBSET ,
62+ createdAt : "" ,
63+ createdBy : "" ,
64+ removedAt : null ,
65+ removedBy : null ,
66+ notes : "" ,
67+ session : null ,
68+ removable : true
69+ } ,
70+ {
71+ id : 789 ,
72+ entity1 : "dog" ,
73+ entity2 : "pet" ,
74+ relationship : KnowledgeBaseRelationship . EQUAL ,
75+ createdAt : "" ,
76+ createdBy : "" ,
77+ removedAt : null ,
78+ removedBy : null ,
79+ notes : "" ,
80+ session : null ,
81+ removable : true
82+ }
83+ ] ,
84+ labelAnnotations : [ ] ,
8785 dataset : Dataset . USER ,
8886 extraData : null
8987 } ;
@@ -126,10 +124,8 @@ describe("AnnotationInputComponent", () => {
126124 premises : [ ] ,
127125 hypothesis : "Empty test hypothesis" ,
128126 entailmentLabel : EntailmentLabel . NEUTRAL ,
129- annotations : {
130- kbAnnotations : [ ] ,
131- labelAnnotations : [ ]
132- } ,
127+ kbAnnotations : [ ] ,
128+ labelAnnotations : [ ] ,
133129 dataset : Dataset . USER ,
134130 extraData : null
135131 } ;
@@ -152,11 +148,8 @@ describe("AnnotationInputComponent", () => {
152148 entailmentLabel : EntailmentLabel . CONTRADICTION ,
153149 dataset : Dataset . USER ,
154150 extraData : null ,
155- annotations : {
156- kbAnnotations : [ ] ,
157- labelAnnotations : [ ] ,
158-
159- } ,
151+ kbAnnotations : [ ] ,
152+ labelAnnotations : [ ] ,
160153 } ;
161154
162155 const form = component [ 'buildForm' ] ( mockProblem ) ;
@@ -178,11 +171,8 @@ describe("AnnotationInputComponent", () => {
178171 entailmentLabel : EntailmentLabel . UNKNOWN ,
179172 dataset : Dataset . USER ,
180173 extraData : null ,
181- annotations : {
182- kbAnnotations : [ ] ,
183- labelAnnotations : [ ] ,
184-
185- }
174+ kbAnnotations : [ ] ,
175+ labelAnnotations : [ ] ,
186176 } ;
187177
188178 component [ 'navigateToNewProblem' ] ( mockProblem ) ;
@@ -202,10 +192,8 @@ describe("AnnotationInputComponent", () => {
202192 entailmentLabel : EntailmentLabel . UNKNOWN ,
203193 dataset : Dataset . USER ,
204194 extraData : null ,
205- annotations : {
206- kbAnnotations : [ ] ,
207- labelAnnotations : [ ] ,
208- }
195+ kbAnnotations : [ ] ,
196+ labelAnnotations : [ ] ,
209197 } ;
210198
211199 component [ 'navigateToNewProblem' ] ( mockProblem ) ;
0 commit comments