File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
src/preferences-unsubscribe Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -24,8 +24,7 @@ describe('Notification Preferences One Click Unsubscribe', () => {
24
24
let component ;
25
25
let store ;
26
26
const userToken = '1234' ;
27
- const updatePatch = 'abc123' ;
28
- const url = getUnsubscribeUrl ( userToken , updatePatch ) ;
27
+ const url = getUnsubscribeUrl ( userToken ) ;
29
28
30
29
beforeAll ( async ( ) => {
31
30
await initializeTestStore ( ) ;
@@ -39,7 +38,7 @@ describe('Notification Preferences One Click Unsubscribe', () => {
39
38
component = (
40
39
< AppProvider store = { store } wrapWithRouter = { false } >
41
40
< UserMessagesProvider >
42
- < MemoryRouter initialEntries = { [ `${ `/preferences-unsubscribe/${ userToken } /${ updatePatch } / ` } ` ] } >
41
+ < MemoryRouter initialEntries = { [ `${ `/preferences-unsubscribe/${ userToken } /` } ` ] } >
43
42
< Routes >
44
43
< Route path = { ROUTES . PREFERENCES_UNSUBSCRIBE } element = { < PreferencesUnsubscribe /> } />
45
44
</ Routes >
@@ -69,7 +68,6 @@ describe('Notification Preferences One Click Unsubscribe', () => {
69
68
expect ( screen . getByTestId ( 'heading-text' ) ) . toHaveTextContent ( 'Error unsubscribing from preference' ) ;
70
69
expect ( sendTrackEvent ) . toHaveBeenCalledWith ( 'edx.ui.lms.notifications.preferences.unsubscribe' , {
71
70
userToken,
72
- updatePatch,
73
71
} ) ;
74
72
} ) ;
75
73
} ) ;
You can’t perform that action at this time.
0 commit comments