@@ -44,6 +44,7 @@ describe('EntryFieldsComponent', () => {
4444 project_id : 'project-id-15' ,
4545 description : 'description for active entry' ,
4646 technologies : [ 'java' , 'typescript' ] ,
47+ uri : 'abc' ,
4748 } ,
4849 entryList : [ ] ,
4950 isLoading : false ,
@@ -55,6 +56,7 @@ describe('EntryFieldsComponent', () => {
5556 id : 'id-15' ,
5657 project_id : 'project-id-15' ,
5758 description : 'description for active entry' ,
59+ uri : 'abc' ,
5860 } ;
5961
6062 beforeEach ( async ( ( ) => {
@@ -83,14 +85,16 @@ describe('EntryFieldsComponent', () => {
8385 const entryDataForm = {
8486 description : 'description for active entry' ,
8587 technologies : null ,
88+ uri : 'abc' ,
8689 } ;
8790
8891 spyOn ( component . entryForm , 'patchValue' ) ;
8992
9093 component . setDataToUpdate ( entry ) ;
9194
9295 expect ( component . entryForm . patchValue ) . toHaveBeenCalledTimes ( 1 ) ;
93- expect ( component . entryForm . patchValue ) . toHaveBeenCalledWith ( { description : entryDataForm . description } ) ;
96+ expect ( component . entryForm . patchValue ) . toHaveBeenCalledWith (
97+ { description : entryDataForm . description , uri : entryDataForm . uri , } ) ;
9498 expect ( component . selectedTechnology ) . toEqual ( [ ] ) ;
9599 } ) ;
96100
@@ -123,6 +127,7 @@ describe('EntryFieldsComponent', () => {
123127 const newEntry = {
124128 id : 'id-15' ,
125129 project_id : 'project-id-15' ,
130+ uri : 'abc' ,
126131 } ;
127132
128133 component . setTechnology ( name ) ;
@@ -167,6 +172,7 @@ describe('EntryFieldsComponent', () => {
167172 const newEntry = {
168173 id : 'id-15' ,
169174 project_id : 'project-id-15' ,
175+ uri : 'abc' ,
170176 } ;
171177 component . selectedTechnology = [ 'java' , 'angular' ] ;
172178 const technologies = component . selectedTechnology . filter ( ( item ) => item !== component . selectedTechnology [ index ] ) ;
0 commit comments