░▒▓████████████████████████████████▓▒░ ░▒▓█ ▓▒░ ░▒▓█ ~ S W A M P ~ ▓▒░ ░▒▓█ ▓▒░ ░▒▓████████████████████████████████▓▒░
pplmvsvm
LOCATION:
/var/www/canvas/ui/features/gradebook/react/default_gradebook/__tests__
☗ ROOT
↻ REFRESH
✎ CARVE FLESH
EDITING: GradebookData.test.tsx
// @ts-nocheck /* * Copyright (C) 2021 - present Instructure, Inc. * * This file is part of Canvas. * * Canvas is free software: you can redistribute it and/or modify it under * the terms of the GNU Affero General Public License as published by the Free * Software Foundation, version 3 of the License. * * Canvas is distributed in the hope that it will be useful, but WITHOUT ANY * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR * A PARTICULAR PURPOSE. See the GNU Affero General Public License for more * details. * * You should have received a copy of the GNU Affero General Public License along * with this program. If not, see <http://www.gnu.org/licenses/>. */ import React from 'react' import {shallow} from 'enzyme' import {RequestDispatch} from '@canvas/network' import GradebookData from '../GradebookData' import Gradebook from '../Gradebook' import PerformanceControls from '../PerformanceControls' import {defaultGradebookProps} from './GradebookSpecHelper' const defaultProps = { ...defaultGradebookProps, gradebookEnv: { context_id: '1', enhanced_gradebook_filters: false, course_settings: { allow_final_grade_override: true, }, settings: { filter_rows_by: { section_id: null, student_group_id: null, }, filter_columns_by: { assignment_group_id: null, context_module_id: null, grading_period_id: null, }, }, }, performance_controls: { students_chunk_size: 2, // students per page }, } describe('GradebookData', () => { it('renders', () => { const wrapper = shallow(<GradebookData {...defaultProps} />) expect(wrapper.find(Gradebook).exists()).toBeTruthy() expect(wrapper.prop('isFiltersLoading')).toStrictEqual(false) expect(wrapper.prop('isModulesLoading')).toStrictEqual(false) expect(wrapper.prop('modules')).toStrictEqual([]) expect(wrapper.prop('dispatch')).toBeInstanceOf(RequestDispatch) expect(wrapper.prop('performanceControls')).toBeInstanceOf(PerformanceControls) }) })
CANCEL
Name
Type
Size
Modified
Actions
↩ ..
DIR
—
—
📄 Gradebook.sorting.test.ts
TS
17.1 KB
2023-09-24 03:36
EDIT
📄 Gradebook.utils.test.ts
TS
16.8 KB
2023-09-24 03:39
EDIT
📄 GradebookData.test.tsx
TSX
2 KB
2023-09-24 03:36
EDIT
📄 GradebookSpecHelper.ts
TS
6.9 KB
2023-09-24 03:36
EDIT