Skip to content

Commit

Permalink
docs: fix comment typos found in code review
Browse files Browse the repository at this point in the history
  • Loading branch information
bradenmacdonald committed Sep 18, 2024
1 parent 4e6f3bd commit dfbf0af
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/library-authoring/add-content/AddContentWorkflow.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -130,10 +130,10 @@ describe('AddContentWorkflow test', () => {
// Pre-condition - the success toast is NOT shown yet:
expect(mockShowToast).not.toHaveBeenCalled();

// Click "Problem" to create a capa problem component
// Click "Video" to create a video component
fireEvent.click(await screen.findByRole('button', { name: /Video/ }));

// We haven't yet implemented the problem editor, so we expect only a toast to appear
// We haven't yet implemented the video editor, so we expect only a toast to appear
await waitFor(() => expect(mockShowToast).toHaveBeenCalledWith('Content created successfully.'));
});
});
2 changes: 1 addition & 1 deletion src/library-authoring/components/utils.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ describe('component utils', () => {
const usageKey = 'lb:org:ALPHA:html:571fe018-f3ce-45c9-8f53-5dafcb422fdd';
expect(getEditUrl(usageKey)).toStrictEqual(`/library/lib:org:ALPHA/editor/html/${usageKey}`);
});
it('returns the right URL for an HTML (Text) block', () => {
it('returns the right URL for editing a Problem block', () => {
const usageKey = 'lb:org:beta:problem:571fe018-f3ce-45c9-8f53-5dafcb422fdd';
expect(getEditUrl(usageKey)).toStrictEqual(`/library/lib:org:beta/editor/problem/${usageKey}`);
});
Expand Down

0 comments on commit dfbf0af

Please sign in to comment.