Fix TS errors in ui/shared/grading_scheme

Closes CFA-61
flag=none

Another stop on the way to zero tsc errors in the codebase.

Test plan:
* tsc no longer generates errors in this bundle
* build passes

Change-Id: I4149e62923bcf6e0e9cd85632f191cdfc90f351e
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/347032
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Aaron Shafovaloff <ashafovaloff@instructure.com>
QA-Review: Charley Kline <ckline@instructure.com>
Product-Review: Charley Kline <ckline@instructure.com>
This commit is contained in:
Charley Kline 2024-05-07 17:51:40 -05:00
parent 5bbea7e67f
commit c677a896aa
2 changed files with 4 additions and 0 deletions

View File

@ -23,6 +23,7 @@ export const MOCK_COURSE_GRADING_SCHEME: GradingScheme = {
context_id: '5',
context_name: 'The 5th Course',
context_type: 'Course',
workflow_state: 'active',
data: [
{name: 'A', value: 0.9},
{name: 'B', value: 0.8},
@ -44,6 +45,7 @@ export const MOCK_DEFAULT_GRADING_SCHEME: GradingScheme = {
context_name: '',
permissions: {manage: false},
assessed_assignment: false,
workflow_state: 'active',
data: [
{name: 'A', value: 0.9},
{name: 'B', value: 0.8},

View File

@ -67,6 +67,7 @@ describe('useGradingSchemeUpdateHook', () => {
context_name: 'A Course Name',
context_type: 'Course',
permissions: {manage: true},
workflow_state: 'active',
}
doFetchApi.mockResolvedValue({
@ -109,6 +110,7 @@ describe('useGradingSchemeUpdateHook', () => {
context_name: 'An Account Name',
context_type: 'Account',
permissions: {manage: true},
workflow_state: 'active',
}
doFetchApi.mockResolvedValue({
response: {ok: true},