fix: [AA-1018] api cleanup

Implement review feedback.
Clean up tests
This commit is contained in:
Chris Deery
2022-01-25 14:08:32 -05:00
parent f0f8027de4
commit 7f016e55aa
16 changed files with 71 additions and 74 deletions

View File

@@ -25,12 +25,7 @@ describe('Loaded Tab Page', () => {
it('shows Instructor Toolbar if original user is staff', async () => {
const courseMetadata = Factory.build('courseMetadata', { original_user_is_staff: true });
const courseHomeMetadata = Factory.build('courseHomeMetadata', {
courseId: courseMetadata.id,
// need to synchronize the id with the courseMetadata because it is autoincremented by courseMetadataBase
id: courseMetadata.id,
original_user_is_staff: true,
});
const courseHomeMetadata = Factory.build('courseHomeMetadata', { original_user_is_staff: true });
const testStore = await initializeTestStore(
{
courseMetadata,