From 9ca5c6108864be7c7747b4de0d58f8fd2dcc709b Mon Sep 17 00:00:00 2001 From: Kristin Aoki Date: Thu, 12 Aug 2021 15:07:23 -0400 Subject: [PATCH] Fix id references --- src/courseware/CoursewareContainer.test.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/courseware/CoursewareContainer.test.jsx b/src/courseware/CoursewareContainer.test.jsx index 4263dd1e..16b16516 100644 --- a/src/courseware/CoursewareContainer.test.jsx +++ b/src/courseware/CoursewareContainer.test.jsx @@ -255,7 +255,7 @@ describe('CoursewareContainer', () => { describe('when the URL contains a unit ID', () => { it('should ignore the section ID and redirect based on the unit ID', async () => { const urlUnit = unitTree[1][1][1]; - setUrl(sectionTree[1].id, urlUnit.hash_key); + setUrl(sectionTree[1].id, urlUnit.id); const container = await loadContainer(); assertLoadedHeader(container); assertSequenceNavigation(container, 2); @@ -316,7 +316,7 @@ describe('CoursewareContainer', () => { it('should insert the sequence ID into the URL', async () => { const unit = unitTree[1][0][1]; - history.push(`/c/${courseId}/${unit.hash_key}`); + history.push(`/c/${courseId}/${unit.id}`); const container = await loadContainer(); assertLoadedHeader(container);