@@ -56,19 +56,19 @@ describe('ItemAdminSearchResultActionsComponent', () => {
5656 it ( 'should render an edit button with the correct link' , ( ) => {
5757 const button = fixture . debugElement . query ( By . css ( 'a.edit-link' ) ) ;
5858 const link = button . nativeElement . href ;
59- expect ( link ) . toContain ( getItemEditRoute ( id ) ) ;
59+ expect ( link ) . toContain ( getItemEditRoute ( item ) ) ;
6060 } ) ;
6161
6262 it ( 'should render a delete button with the correct link' , ( ) => {
6363 const button = fixture . debugElement . query ( By . css ( 'a.delete-link' ) ) ;
6464 const link = button . nativeElement . href ;
65- expect ( link ) . toContain ( new URLCombiner ( getItemEditRoute ( id ) , ITEM_EDIT_DELETE_PATH ) . toString ( ) ) ;
65+ expect ( link ) . toContain ( new URLCombiner ( getItemEditRoute ( item ) , ITEM_EDIT_DELETE_PATH ) . toString ( ) ) ;
6666 } ) ;
6767
6868 it ( 'should render a move button with the correct link' , ( ) => {
6969 const a = fixture . debugElement . query ( By . css ( 'a.move-link' ) ) ;
7070 const link = a . nativeElement . href ;
71- expect ( link ) . toContain ( new URLCombiner ( getItemEditRoute ( id ) , ITEM_EDIT_MOVE_PATH ) . toString ( ) ) ;
71+ expect ( link ) . toContain ( new URLCombiner ( getItemEditRoute ( item ) , ITEM_EDIT_MOVE_PATH ) . toString ( ) ) ;
7272 } ) ;
7373
7474 describe ( 'when the item is not withdrawn' , ( ) => {
@@ -80,7 +80,7 @@ describe('ItemAdminSearchResultActionsComponent', () => {
8080 it ( 'should render a withdraw button with the correct link' , ( ) => {
8181 const a = fixture . debugElement . query ( By . css ( 'a.withdraw-link' ) ) ;
8282 const link = a . nativeElement . href ;
83- expect ( link ) . toContain ( new URLCombiner ( getItemEditRoute ( id ) , ITEM_EDIT_WITHDRAW_PATH ) . toString ( ) ) ;
83+ expect ( link ) . toContain ( new URLCombiner ( getItemEditRoute ( item ) , ITEM_EDIT_WITHDRAW_PATH ) . toString ( ) ) ;
8484 } ) ;
8585
8686 it ( 'should not render a reinstate button with the correct link' , ( ) => {
@@ -103,7 +103,7 @@ describe('ItemAdminSearchResultActionsComponent', () => {
103103 it ( 'should render a reinstate button with the correct link' , ( ) => {
104104 const a = fixture . debugElement . query ( By . css ( 'a.reinstate-link' ) ) ;
105105 const link = a . nativeElement . href ;
106- expect ( link ) . toContain ( new URLCombiner ( getItemEditRoute ( id ) , ITEM_EDIT_REINSTATE_PATH ) . toString ( ) ) ;
106+ expect ( link ) . toContain ( new URLCombiner ( getItemEditRoute ( item ) , ITEM_EDIT_REINSTATE_PATH ) . toString ( ) ) ;
107107 } ) ;
108108 } ) ;
109109
@@ -116,7 +116,7 @@ describe('ItemAdminSearchResultActionsComponent', () => {
116116 it ( 'should render a make private button with the correct link' , ( ) => {
117117 const a = fixture . debugElement . query ( By . css ( 'a.private-link' ) ) ;
118118 const link = a . nativeElement . href ;
119- expect ( link ) . toContain ( new URLCombiner ( getItemEditRoute ( id ) , ITEM_EDIT_PRIVATE_PATH ) . toString ( ) ) ;
119+ expect ( link ) . toContain ( new URLCombiner ( getItemEditRoute ( item ) , ITEM_EDIT_PRIVATE_PATH ) . toString ( ) ) ;
120120 } ) ;
121121
122122 it ( 'should not render a make public button with the correct link' , ( ) => {
@@ -139,7 +139,7 @@ describe('ItemAdminSearchResultActionsComponent', () => {
139139 it ( 'should render a make private button with the correct link' , ( ) => {
140140 const a = fixture . debugElement . query ( By . css ( 'a.public-link' ) ) ;
141141 const link = a . nativeElement . href ;
142- expect ( link ) . toContain ( new URLCombiner ( getItemEditRoute ( id ) , ITEM_EDIT_PUBLIC_PATH ) . toString ( ) ) ;
142+ expect ( link ) . toContain ( new URLCombiner ( getItemEditRoute ( item ) , ITEM_EDIT_PUBLIC_PATH ) . toString ( ) ) ;
143143 } ) ;
144144 } ) ;
145145} ) ;
0 commit comments