Fix variable in API call

This commit is contained in:
Kristin Aoki
2021-08-02 15:12:05 -04:00
parent 229692255f
commit 7242583f13

View File

@@ -44,6 +44,7 @@ describe('Unit', () => {
id: unit.id,
courseId: courseMetadata.id,
format: 'Homework',
decoded_id: unit.decoded_id,
};
});
@@ -53,7 +54,7 @@ describe('Unit', () => {
const renderedUnit = screen.getByTitle(unit.display_name);
expect(renderedUnit).toHaveAttribute('height', String(0));
expect(renderedUnit).toHaveAttribute(
'src', `http://localhost:18000/xblock/${mockData.id}?show_title=0&show_bookmark_button=0&recheck_access=1&view=student_view&format=${mockData.format}`,
'src', `http://localhost:18000/xblock/${mockData.decoded_id}?show_title=0&show_bookmark_button=0&recheck_access=1&view=student_view&format=${mockData.format}`,
);
});