Skip to content

Commit 57b5dc4

Browse files
committed
fix: update navigation paths in hooks tests to remove 'authoring' prefix
1 parent 5ce9168 commit 57b5dc4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/editors/containers/VideoGallery/hooks.test.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ describe('hooks module', () => {
141141
});
142142

143143
expect(appHooks.navigateTo).toHaveBeenCalledWith(
144-
'/authoring/course/course-v1:id/editor/video/block-v1:id?selectedVideoId=video123',
144+
'/course/course-v1:id/editor/video/block-v1:id?selectedVideoId=video123',
145145
);
146146
});
147147

src/editors/containers/VideoUploadEditor/hooks.test.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ describe('hooks module', () => {
5454
redirectFn('test-video-url');
5555

5656
expect(appHooks.navigateTo).toHaveBeenCalledWith(
57-
'/authoring/course/course-v1:test/editor/video/block-123?selectedVideoUrl=test-video-url',
57+
'/course/course-v1:test/editor/video/block-123?selectedVideoUrl=test-video-url',
5858
);
5959
});
6060

@@ -69,7 +69,7 @@ describe('hooks module', () => {
6969
redirectFn('test-video-url');
7070

7171
expect(appHooks.navigateTo).toHaveBeenCalledWith(
72-
'/authoring/course/course-v1:test/editor/video/block-123?customType=test-video-url',
72+
'/course/course-v1:test/editor/video/block-123?customType=test-video-url',
7373
);
7474
});
7575
});

0 commit comments

Comments
 (0)