Fix id references

This commit is contained in:
Kristin Aoki
2021-08-12 15:07:23 -04:00
parent a17e2a1a15
commit 9ca5c61088

View File

@@ -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);