From dfb5cce47b0886ccf614632be55e77c580087a7c Mon Sep 17 00:00:00 2001 From: Aaron Shafovaloff Date: Tue, 4 Jun 2024 15:23:36 -0600 Subject: [PATCH] colocate some QUnit tests Change-Id: If111507b32fbb46603537e13768ce14e32bf2860 Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/349223 Tested-by: Service Cloud Jenkins Reviewed-by: Spencer Olson QA-Review: Drake Harper Product-Review: Drake Harper --- .eslintrc.js | 31 +++++++++++++++++++ jest/jest-setup.js | 4 +-- spec/coffeescripts/handlebars_helpersSpec.js | 2 +- spec/coffeescripts/helpers/I18nStubber.js | 3 +- .../instructureDateAndTimeSpec.js | 3 +- .../jsx/shared/helpers/dateHelperSpec.js | 2 +- spec/coffeescripts/views/SyllabusViewSpec.js | 2 +- spec/javascripts/jsx/moment_formatsSpec.js | 2 +- .../components/AssessmentSummarySpec.jsx | 2 +- spec/javascripts/webpack_spec_index.js | 4 +-- ui/boot/index.js | 4 +-- .../__tests__/configureDateTime.test.js | 4 +-- .../configureDateTimeWithI18n.t3st.js | 4 +-- .../__tests__}/AccountGradingPeriodSpec.jsx | 2 +- .../EditGradingPeriodSetFormSpec.jsx | 2 +- .../__tests__}/EnrollmentTermInputSpec.jsx | 3 +- .../EnrollmentTermsDropdownSpec.jsx | 2 +- .../__tests__/GradingPeriodForm.test.jsx | 2 +- .../GradingPeriodSetCollectionSpec.jsx | 4 +-- .../react/__tests__}/GradingPeriodSetSpec.jsx | 2 +- .../NewGradingPeriodSetFormSpec.jsx | 2 +- .../SearchGradingPeriodsFieldSpec.jsx | 2 +- .../__tests__}/CalendarEventFilterSpec.js | 3 +- .../views/__tests__}/AgendaViewSpec.js | 8 ++--- .../__tests__}/EditAssignmentDetailsSpec.js | 4 +-- .../__tests__}/EditPlannerNoteDetailsSpec.js | 2 +- .../jquery/__tests__}/CalendarSpec.js | 2 +- .../EditAppointmentGroupDetailsSpec.js | 2 +- .../jquery/__tests__}/TimeBlockListSpec.js | 6 +--- .../jquery/__tests__}/TimeBlockRowSpec.js | 6 ++-- .../RosterTableLastActivity.test.jsx | 2 +- .../jquery/__tests__}/GradeSummarySpec.js | 6 ++-- .../__tests__}/ApiSpec.js | 4 +-- .../AssignmentPostingPolicyTraySpec.jsx | 4 +-- .../__tests__}/LayoutSpec.jsx | 2 +- .../__tests__}/LatePolicyApplicatorSpec.js | 2 +- .../__tests__}/GradebookHelpersSpec.js | 4 +-- .../__tests__}/GradebookHeaderMenuSpec.jsx | 2 +- .../__tests__}/SubmissionDetailsDialogSpec.js | 4 +-- .../__tests__}/quizzesNextSpeedGradingSpec.js | 2 +- .../__tests__}/TimeBlockListManagerSpec.js | 2 +- .../CommonEvent/__tests__}/CommonEventSpec.js | 3 +- .../jquery/__tests__}/EventDataSourceSpec.js | 2 +- .../calendar/jquery/__tests__}/fcUtilSpec.js | 2 +- .../datetime}/configureDateTime.js | 0 .../configureDateTimeMomentParser.js | 0 .../__tests__}/MissingDateDialogViewSpec.js | 2 +- .../react/__tests__}/StatusPillSpec.jsx | 2 +- .../__tests__}/GradeInputHelperSpec.js | 5 +-- .../__tests__}/GradingPeriodsHelperSpec.js | 2 +- .../__tests__}/OutlierScoreHelperSpec.js | 2 +- .../__tests__}/SubmissionHelperSpec.js | 7 +---- .../react/__tests__}/SpecificSectionsSpec.jsx | 2 +- .../react/__tests__}/ApiSpec.js | 4 +-- .../react/__tests__}/FormContentSpec.jsx | 2 +- .../HideAssignmentGradesTraySpec.jsx | 2 +- .../react/__tests__}/LayoutSpec.jsx | 2 +- .../__tests__}/OutcomeGradebookGridSpec.js | 2 +- .../react/__tests__}/ApiSpec.js | 4 +-- .../react/__tests__}/FormContentSpec.jsx | 4 +-- .../react/__tests__}/LayoutSpec.jsx | 4 +-- .../PostAssignmentGradesTraySpec.jsx | 2 +- .../react/__tests__}/PostTypesSpec.jsx | 2 +- 63 files changed, 115 insertions(+), 97 deletions(-) rename {spec/javascripts/jsx/grading => ui/features/account_grading_settings/components/grading_period/__tests__}/AccountGradingPeriodSpec.jsx (98%) rename {spec/javascripts/jsx/grading => ui/features/account_grading_standards/react/__tests__}/EditGradingPeriodSetFormSpec.jsx (98%) rename {spec/javascripts/jsx/grading => ui/features/account_grading_standards/react/__tests__}/EnrollmentTermInputSpec.jsx (97%) rename {spec/javascripts/jsx/grading => ui/features/account_grading_standards/react/__tests__}/EnrollmentTermsDropdownSpec.jsx (97%) rename {spec/javascripts/jsx/grading => ui/features/account_grading_standards/react/__tests__}/GradingPeriodSetCollectionSpec.jsx (99%) rename {spec/javascripts/jsx/grading => ui/features/account_grading_standards/react/__tests__}/GradingPeriodSetSpec.jsx (99%) rename {spec/javascripts/jsx/grading => ui/features/account_grading_standards/react/__tests__}/NewGradingPeriodSetFormSpec.jsx (98%) rename {spec/javascripts/jsx/grading => ui/features/account_grading_standards/react/__tests__}/SearchGradingPeriodsFieldSpec.jsx (93%) rename {spec/coffeescripts/calendar => ui/features/calendar/__tests__}/CalendarEventFilterSpec.js (98%) rename {spec/coffeescripts/calendar => ui/features/calendar/backbone/views/__tests__}/AgendaViewSpec.js (99%) rename {spec/coffeescripts/calendar => ui/features/calendar/backbone/views/__tests__}/EditAssignmentDetailsSpec.js (98%) rename {spec/coffeescripts/calendar => ui/features/calendar/backbone/views/__tests__}/EditPlannerNoteDetailsSpec.js (96%) rename {spec/coffeescripts/calendar => ui/features/calendar/jquery/__tests__}/CalendarSpec.js (99%) rename {spec/coffeescripts/calendar => ui/features/calendar/jquery/__tests__}/EditAppointmentGroupDetailsSpec.js (96%) rename {spec/coffeescripts/calendar => ui/features/calendar/jquery/__tests__}/TimeBlockListSpec.js (96%) rename {spec/coffeescripts/calendar => ui/features/calendar/jquery/__tests__}/TimeBlockRowSpec.js (96%) rename {spec/javascripts/jsx/grading => ui/features/grade_summary/jquery/__tests__}/GradeSummarySpec.js (99%) rename {spec/javascripts/jsx/grading/AssignmentPostingPolicyTray => ui/features/gradebook/react/AssignmentPostingPolicyTray/__tests__}/ApiSpec.js (95%) rename {spec/javascripts/jsx/grading/AssignmentPostingPolicyTray => ui/features/gradebook/react/AssignmentPostingPolicyTray/__tests__}/AssignmentPostingPolicyTraySpec.jsx (98%) rename {spec/javascripts/jsx/grading/AssignmentPostingPolicyTray => ui/features/gradebook/react/AssignmentPostingPolicyTray/__tests__}/LayoutSpec.jsx (98%) rename {spec/javascripts/jsx/grading => ui/features/gradebook/react/__tests__}/LatePolicyApplicatorSpec.js (99%) rename {spec/coffeescripts/gradebook => ui/features/screenreader_gradebook/__tests__}/GradebookHelpersSpec.js (94%) rename {spec/coffeescripts/gradebook => ui/features/screenreader_gradebook/jquery/__tests__}/GradebookHeaderMenuSpec.jsx (99%) rename {spec/coffeescripts/gradebook => ui/features/screenreader_gradebook/jquery/__tests__}/SubmissionDetailsDialogSpec.js (97%) rename {spec/javascripts/jsx/grading => ui/features/speed_grader/__tests__}/quizzesNextSpeedGradingSpec.js (99%) rename {spec/coffeescripts/calendar => ui/shared/calendar/__tests__}/TimeBlockListManagerSpec.js (98%) rename {spec/coffeescripts/calendar => ui/shared/calendar/jquery/CommonEvent/__tests__}/CommonEventSpec.js (97%) rename {spec/coffeescripts/calendar => ui/shared/calendar/jquery/__tests__}/EventDataSourceSpec.js (99%) rename {spec/coffeescripts/calendar => ui/shared/calendar/jquery/__tests__}/fcUtilSpec.js (97%) rename ui/{boot/initializers => shared/datetime}/configureDateTime.js (100%) rename ui/{boot/initializers => shared/datetime}/configureDateTimeMomentParser.js (100%) rename {spec/coffeescripts/calendar => ui/shared/due-dates/backbone/views/__tests__}/MissingDateDialogViewSpec.js (96%) rename {spec/javascripts/jsx/grading => ui/shared/grading-status-pill/react/__tests__}/StatusPillSpec.jsx (98%) rename {spec/javascripts/jsx/grading/helpers => ui/shared/grading/__tests__}/GradeInputHelperSpec.js (99%) rename {spec/javascripts/jsx/grading/helpers => ui/shared/grading/__tests__}/GradingPeriodsHelperSpec.js (98%) rename {spec/javascripts/jsx/grading/helpers => ui/shared/grading/__tests__}/OutlierScoreHelperSpec.js (97%) rename {spec/javascripts/jsx/grading/helpers => ui/shared/grading/__tests__}/SubmissionHelperSpec.js (99%) rename {spec/javascripts/jsx/grading => ui/shared/grading/react/__tests__}/SpecificSectionsSpec.jsx (97%) rename {spec/javascripts/jsx/grading/HideAssignmentGradesTray => ui/shared/hide-assignment-grades-tray/react/__tests__}/ApiSpec.js (97%) rename {spec/javascripts/jsx/grading/HideAssignmentGradesTray => ui/shared/hide-assignment-grades-tray/react/__tests__}/FormContentSpec.jsx (98%) rename {spec/javascripts/jsx/grading/HideAssignmentGradesTray => ui/shared/hide-assignment-grades-tray/react/__tests__}/HideAssignmentGradesTraySpec.jsx (99%) rename {spec/javascripts/jsx/grading/HideAssignmentGradesTray => ui/shared/hide-assignment-grades-tray/react/__tests__}/LayoutSpec.jsx (98%) rename {spec/coffeescripts/gradebook => ui/shared/outcome-gradebook-grid/__tests__}/OutcomeGradebookGridSpec.js (99%) rename {spec/javascripts/jsx/grading/PostAssignmentGradesTray => ui/shared/post-assignment-grades-tray/react/__tests__}/ApiSpec.js (98%) rename {spec/javascripts/jsx/grading/PostAssignmentGradesTray => ui/shared/post-assignment-grades-tray/react/__tests__}/FormContentSpec.jsx (98%) rename {spec/javascripts/jsx/grading/PostAssignmentGradesTray => ui/shared/post-assignment-grades-tray/react/__tests__}/LayoutSpec.jsx (97%) rename {spec/javascripts/jsx/grading/PostAssignmentGradesTray => ui/shared/post-assignment-grades-tray/react/__tests__}/PostAssignmentGradesTraySpec.jsx (99%) rename {spec/javascripts/jsx/grading/PostAssignmentGradesTray => ui/shared/post-assignment-grades-tray/react/__tests__}/PostTypesSpec.jsx (98%) diff --git a/.eslintrc.js b/.eslintrc.js index a5b417ae824..ce0518c9c3e 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -16,6 +16,7 @@ * with this program. If not, see . */ +const {glob} = require('glob') const path = require('path') module.exports = { @@ -258,6 +259,36 @@ module.exports = { }, }, overrides: [ + { + files: ['ui/**/*Spec.js', 'ui/**/*Spec.jsx'], + extends: ['plugin:qunit/recommended', 'plugin:qunit/two'], + plugins: ['qunit'], + globals: { + module: true, + test: true, + equal: true, + ok: true, + sandbox: true, + sinon: true, + deepEqual: true, + }, + env: { + qunit: true, + }, + rules: { + 'func-names': 'off', + 'prefer-arrow-callback': 'off', + 'jest/no-identical-title': 'off', + 'qunit/no-identical-names': 'off', + 'qunit/no-setup-teardown': 'off', + 'qunit/no-global-assertions': 'off', + 'qunit/no-global-module-test': 'off', + 'qunit/require-expect': 'off', + 'qunit/no-assert-logical-expression': 'error', + 'qunit/no-commented-tests': 'error', + 'qunit/no-compare-relation-boolean': 'error', + }, + }, { files: require('./jest.config').testMatch, plugins: ['jest'], diff --git a/jest/jest-setup.js b/jest/jest-setup.js index a032200cb99..ff852f119b3 100644 --- a/jest/jest-setup.js +++ b/jest/jest-setup.js @@ -23,8 +23,8 @@ import Enzyme from 'enzyme' import Adapter from 'enzyme-adapter-react-16' import filterUselessConsoleMessages from '@instructure/filter-console-messages' import rceFormatMessage from '@instructure/canvas-rce/es/format-message' -import {up as configureDateTime} from '../ui/boot/initializers/configureDateTime' -import {up as configureDateTimeMomentParser} from '../ui/boot/initializers/configureDateTimeMomentParser' +import {up as configureDateTime} from '@canvas/datetime/configureDateTime' +import {up as configureDateTimeMomentParser} from '@canvas/datetime/configureDateTimeMomentParser' import {useTranslations} from '@canvas/i18n' import MockBroadcastChannel from './MockBroadcastChannel' diff --git a/spec/coffeescripts/handlebars_helpersSpec.js b/spec/coffeescripts/handlebars_helpersSpec.js index 38fd3681954..ac07945a8d2 100644 --- a/spec/coffeescripts/handlebars_helpersSpec.js +++ b/spec/coffeescripts/handlebars_helpersSpec.js @@ -29,7 +29,7 @@ import detroit from 'timezone/America/Detroit' import chicago from 'timezone/America/Chicago' import newYork from 'timezone/America/New_York' import I18n from 'i18n-js' -import {getI18nFormats} from 'ui/boot/initializers/configureDateTime' +import {getI18nFormats} from '@canvas/datetime/configureDateTime' const {helpers} = Handlebars const {contains} = assertions diff --git a/spec/coffeescripts/helpers/I18nStubber.js b/spec/coffeescripts/helpers/I18nStubber.js index e1b4c4a1508..5f7ee9dfddb 100644 --- a/spec/coffeescripts/helpers/I18nStubber.js +++ b/spec/coffeescripts/helpers/I18nStubber.js @@ -1,3 +1,4 @@ +/* eslint-disable no-throw-literal */ /* * Copyright (C) 2015 - present Instructure, Inc. * @@ -16,7 +17,7 @@ * with this program. If not, see . */ -import I18n, {useTranslations} from '@canvas/i18n' +import I18n from '@canvas/i18n' import enTranslations from 'translations/en.json' const frames = [] diff --git a/spec/coffeescripts/instructureDateAndTimeSpec.js b/spec/coffeescripts/instructureDateAndTimeSpec.js index f9d54a707b9..26ea3804f83 100644 --- a/spec/coffeescripts/instructureDateAndTimeSpec.js +++ b/spec/coffeescripts/instructureDateAndTimeSpec.js @@ -35,7 +35,8 @@ import { timeString, unfudgeDateForProfileTimezone, } from '@canvas/datetime/date-functions' -import {getI18nFormats} from 'ui/boot/initializers/configureDateTime' +import {getI18nFormats} from '@canvas/datetime/configureDateTime' +import '@canvas/datetime/jquery/datepicker' QUnit.module('fudgeDateForProfileTimezone', { setup() { diff --git a/spec/coffeescripts/jsx/shared/helpers/dateHelperSpec.js b/spec/coffeescripts/jsx/shared/helpers/dateHelperSpec.js index c94d278ff0a..bad379c941b 100644 --- a/spec/coffeescripts/jsx/shared/helpers/dateHelperSpec.js +++ b/spec/coffeescripts/jsx/shared/helpers/dateHelperSpec.js @@ -24,7 +24,7 @@ import timezone from 'timezone' import detroit from 'timezone/America/Detroit' import juneau from 'timezone/America/Juneau' import tokyo from 'timezone/Asia/Tokyo' -import {getI18nFormats} from 'ui/boot/initializers/configureDateTime' +import {getI18nFormats} from '@canvas/datetime/configureDateTime' const defaultAssignment = () => ({ title: 'assignment', diff --git a/spec/coffeescripts/views/SyllabusViewSpec.js b/spec/coffeescripts/views/SyllabusViewSpec.js index 0ea43b2890a..81c36ef5768 100644 --- a/spec/coffeescripts/views/SyllabusViewSpec.js +++ b/spec/coffeescripts/views/SyllabusViewSpec.js @@ -34,7 +34,7 @@ import SyllabusView from 'ui/features/syllabus/backbone/views/SyllabusView' import SyllabusViewPrerendered from './SyllabusViewPrerendered' import fakeENV from 'helpers/fakeENV' import '@canvas/jquery/jquery.simulate' -import {getI18nFormats} from 'ui/boot/initializers/configureDateTime' +import {getI18nFormats} from '@canvas/datetime/configureDateTime' function setupServerResponses() { const server = sinon.fakeServer.create() diff --git a/spec/javascripts/jsx/moment_formatsSpec.js b/spec/javascripts/jsx/moment_formatsSpec.js index b6d08eb2887..ba132b5193d 100644 --- a/spec/javascripts/jsx/moment_formatsSpec.js +++ b/spec/javascripts/jsx/moment_formatsSpec.js @@ -17,7 +17,7 @@ */ import I18nStubber from 'helpers/I18nStubber' -import {prepareFormats} from '../../../ui/boot/initializers/configureDateTimeMomentParser' +import {prepareFormats} from '@canvas/datetime/configureDateTimeMomentParser' QUnit.module('Moment formats', { setup() { diff --git a/spec/javascripts/jsx/speed_grader/AssessmentAuditTray/components/AssessmentSummarySpec.jsx b/spec/javascripts/jsx/speed_grader/AssessmentAuditTray/components/AssessmentSummarySpec.jsx index 1a84b82bf46..287f3622ec5 100644 --- a/spec/javascripts/jsx/speed_grader/AssessmentAuditTray/components/AssessmentSummarySpec.jsx +++ b/spec/javascripts/jsx/speed_grader/AssessmentAuditTray/components/AssessmentSummarySpec.jsx @@ -24,7 +24,7 @@ import newYork from 'timezone/America/New_York' import AssessmentSummary from 'ui/features/speed_grader/react/AssessmentAuditTray/components/AssessmentSummary' import {overallAnonymityStates} from 'ui/features/speed_grader/react/AssessmentAuditTray/AuditTrailHelpers' -import {getI18nFormats} from 'ui/boot/initializers/configureDateTime' +import {getI18nFormats} from '@canvas/datetime/configureDateTime' const {FULL, NA, PARTIAL} = overallAnonymityStates diff --git a/spec/javascripts/webpack_spec_index.js b/spec/javascripts/webpack_spec_index.js index ee2c1cfee1e..d3756475350 100644 --- a/spec/javascripts/webpack_spec_index.js +++ b/spec/javascripts/webpack_spec_index.js @@ -26,8 +26,8 @@ import en_US from 'timezone/en_US' import './jsx/spec-support/specProtection' import filterUselessConsoleMessages from '@instructure/filter-console-messages' import './jsx/spec-support/timezoneBackwardsCompatLayer' -import {up as configureDateTime} from 'ui/boot/initializers/configureDateTime' -import {up as configureDateTimeMomentParser} from 'ui/boot/initializers/configureDateTimeMomentParser' +import {up as configureDateTime} from '@canvas/datetime/configureDateTime' +import {up as configureDateTimeMomentParser} from '@canvas/datetime/configureDateTimeMomentParser' import {useTranslations} from '@canvas/i18n' import CoreTranslations from 'translations/en.json' diff --git a/ui/boot/index.js b/ui/boot/index.js index 4bc428396de..fe0fedddcbd 100644 --- a/ui/boot/index.js +++ b/ui/boot/index.js @@ -24,8 +24,8 @@ import filterUselessConsoleMessages from '../../packages/filter-console-messages import moment from 'moment' import './initializers/fakeRequireJSFallback' import './initializers/ujsLinks' -import {up as configureDateTimeMomentParser} from './initializers/configureDateTimeMomentParser' -import {up as configureDateTime} from './initializers/configureDateTime' +import {up as configureDateTimeMomentParser} from '@canvas/datetime/configureDateTimeMomentParser' +import {up as configureDateTime} from '@canvas/datetime/configureDateTime' import {initSentry} from './initializers/initSentry' import {up as renderRailsFlashNotifications} from './initializers/renderRailsFlashNotifications' import {up as activateCourseMenuToggler} from './initializers/activateCourseMenuToggler' diff --git a/ui/boot/initializers/__tests__/configureDateTime.test.js b/ui/boot/initializers/__tests__/configureDateTime.test.js index 0abfa08955b..64b30a95434 100644 --- a/ui/boot/initializers/__tests__/configureDateTime.test.js +++ b/ui/boot/initializers/__tests__/configureDateTime.test.js @@ -22,11 +22,11 @@ import zh_CN from 'timezone/zh_CN' import en_US from 'timezone/en_US' import MockDate from 'mockdate' import I18nStubber from '../../../../spec/coffeescripts/helpers/I18nStubber' -import {up as configureDateTime, down as resetDateTime} from '../configureDateTime' +import {up as configureDateTime, down as resetDateTime} from '@canvas/datetime/configureDateTime' import { up as configureDateTimeMomentParser, down as resetDateTimeMomentParser, -} from '../configureDateTimeMomentParser' +} from '@canvas/datetime/configureDateTimeMomentParser' const equal = (a, b, _message) => expect(a).toEqual(b) diff --git a/ui/boot/initializers/__tests__/configureDateTimeWithI18n.t3st.js b/ui/boot/initializers/__tests__/configureDateTimeWithI18n.t3st.js index 21ca0552947..45dc7cb3341 100644 --- a/ui/boot/initializers/__tests__/configureDateTimeWithI18n.t3st.js +++ b/ui/boot/initializers/__tests__/configureDateTimeWithI18n.t3st.js @@ -40,8 +40,8 @@ import '../../../ext/custom_moment_locales/hy_am' import '../../../ext/custom_moment_locales/sl' import {parse, format, hasMeridiem, dateString} from '@instructure/moment-utils' -import * as configureDateTime from '../configureDateTime' -import * as configureDateTimeMomentParser from '../configureDateTimeMomentParser' +import * as configureDateTime from '@canvas/datetime/configureDateTime' +import * as configureDateTimeMomentParser from '@canvas/datetime/configureDateTimeMomentParser' // eslint-disable-next-line import/no-nodejs-modules import fs from 'fs' import I18n, {useTranslations} from '@canvas/i18n' diff --git a/spec/javascripts/jsx/grading/AccountGradingPeriodSpec.jsx b/ui/features/account_grading_settings/components/grading_period/__tests__/AccountGradingPeriodSpec.jsx similarity index 98% rename from spec/javascripts/jsx/grading/AccountGradingPeriodSpec.jsx rename to ui/features/account_grading_settings/components/grading_period/__tests__/AccountGradingPeriodSpec.jsx index 927d7f55f6c..bf9c0896b2d 100644 --- a/spec/javascripts/jsx/grading/AccountGradingPeriodSpec.jsx +++ b/ui/features/account_grading_settings/components/grading_period/__tests__/AccountGradingPeriodSpec.jsx @@ -22,7 +22,7 @@ import ReactDOM from 'react-dom' import {Simulate} from 'react-dom/test-utils' import axios from '@canvas/axios' import {defaults} from 'lodash' -import GradingPeriod from 'ui/features/account_grading_standards/react/AccountGradingPeriod' +import GradingPeriod from '../AccountGradingPeriod' const wrapper = document.getElementById('fixtures') diff --git a/spec/javascripts/jsx/grading/EditGradingPeriodSetFormSpec.jsx b/ui/features/account_grading_standards/react/__tests__/EditGradingPeriodSetFormSpec.jsx similarity index 98% rename from spec/javascripts/jsx/grading/EditGradingPeriodSetFormSpec.jsx rename to ui/features/account_grading_standards/react/__tests__/EditGradingPeriodSetFormSpec.jsx index 4f21c23de0a..6948f7230d0 100644 --- a/spec/javascripts/jsx/grading/EditGradingPeriodSetFormSpec.jsx +++ b/ui/features/account_grading_standards/react/__tests__/EditGradingPeriodSetFormSpec.jsx @@ -21,7 +21,7 @@ import React from 'react' import ReactDOM from 'react-dom' import {Simulate} from 'react-dom/test-utils' import _ from 'lodash' -import GradingPeriodSetForm from 'ui/features/account_grading_standards/react/EditGradingPeriodSetForm' +import GradingPeriodSetForm from '../EditGradingPeriodSetForm' const wrapper = document.getElementById('fixtures') diff --git a/spec/javascripts/jsx/grading/EnrollmentTermInputSpec.jsx b/ui/features/account_grading_standards/react/__tests__/EnrollmentTermInputSpec.jsx similarity index 97% rename from spec/javascripts/jsx/grading/EnrollmentTermInputSpec.jsx rename to ui/features/account_grading_standards/react/__tests__/EnrollmentTermInputSpec.jsx index d8c063bf898..0cb21603b48 100644 --- a/spec/javascripts/jsx/grading/EnrollmentTermInputSpec.jsx +++ b/ui/features/account_grading_standards/react/__tests__/EnrollmentTermInputSpec.jsx @@ -17,11 +17,10 @@ */ import React from 'react' - import ReactDOM from 'react-dom' import {findRenderedDOMComponentWithClass} from 'react-dom/test-utils' import {defaults, map} from 'lodash' -import Input from 'ui/features/account_grading_standards/react/EnrollmentTermInput' +import Input from '../EnrollmentTermInput' const wrapper = document.getElementById('fixtures') diff --git a/spec/javascripts/jsx/grading/EnrollmentTermsDropdownSpec.jsx b/ui/features/account_grading_standards/react/__tests__/EnrollmentTermsDropdownSpec.jsx similarity index 97% rename from spec/javascripts/jsx/grading/EnrollmentTermsDropdownSpec.jsx rename to ui/features/account_grading_standards/react/__tests__/EnrollmentTermsDropdownSpec.jsx index 1e300f212d9..082f795af0f 100644 --- a/spec/javascripts/jsx/grading/EnrollmentTermsDropdownSpec.jsx +++ b/ui/features/account_grading_standards/react/__tests__/EnrollmentTermsDropdownSpec.jsx @@ -21,7 +21,7 @@ import React from 'react' import ReactDOM from 'react-dom' import {Simulate} from 'react-dom/test-utils' import _ from 'lodash' -import Dropdown from 'ui/features/account_grading_standards/react/EnrollmentTermsDropdown' +import Dropdown from '../EnrollmentTermsDropdown' const wrapper = document.getElementById('fixtures') diff --git a/ui/features/account_grading_standards/react/__tests__/GradingPeriodForm.test.jsx b/ui/features/account_grading_standards/react/__tests__/GradingPeriodForm.test.jsx index 9d3b19e5c09..80819c3f757 100644 --- a/ui/features/account_grading_standards/react/__tests__/GradingPeriodForm.test.jsx +++ b/ui/features/account_grading_standards/react/__tests__/GradingPeriodForm.test.jsx @@ -25,7 +25,7 @@ import * as tz from '@instructure/moment-utils' import tzInTest from '@instructure/moment-utils/specHelpers' import timezone from 'timezone' import GradingPeriodForm from '../GradingPeriodForm' -import {getI18nFormats} from '../../../../boot/initializers/configureDateTime' +import {getI18nFormats} from '@canvas/datetime/configureDateTime' const onSave = jest.fn() const onCancel = jest.fn() diff --git a/spec/javascripts/jsx/grading/GradingPeriodSetCollectionSpec.jsx b/ui/features/account_grading_standards/react/__tests__/GradingPeriodSetCollectionSpec.jsx similarity index 99% rename from spec/javascripts/jsx/grading/GradingPeriodSetCollectionSpec.jsx rename to ui/features/account_grading_standards/react/__tests__/GradingPeriodSetCollectionSpec.jsx index c9c84240bc7..f13782c675f 100644 --- a/spec/javascripts/jsx/grading/GradingPeriodSetCollectionSpec.jsx +++ b/ui/features/account_grading_standards/react/__tests__/GradingPeriodSetCollectionSpec.jsx @@ -23,8 +23,8 @@ import React from 'react' import ReactDOM from 'react-dom' import {Simulate, findRenderedDOMComponentWithTag} from 'react-dom/test-utils' import gradingPeriodSetsApi from '@canvas/grading/jquery/gradingPeriodSetsApi' -import enrollmentTermsApi from 'ui/features/account_grading_standards/enrollmentTermsApi' -import GradingPeriodSetCollection from 'ui/features/account_grading_standards/react/GradingPeriodSetCollection' +import enrollmentTermsApi from '../../enrollmentTermsApi' +import GradingPeriodSetCollection from '../GradingPeriodSetCollection' const wrapper = document.getElementById('fixtures') diff --git a/spec/javascripts/jsx/grading/GradingPeriodSetSpec.jsx b/ui/features/account_grading_standards/react/__tests__/GradingPeriodSetSpec.jsx similarity index 99% rename from spec/javascripts/jsx/grading/GradingPeriodSetSpec.jsx rename to ui/features/account_grading_standards/react/__tests__/GradingPeriodSetSpec.jsx index 47f46bb292d..9e9cf2cd1b7 100644 --- a/spec/javascripts/jsx/grading/GradingPeriodSetSpec.jsx +++ b/ui/features/account_grading_standards/react/__tests__/GradingPeriodSetSpec.jsx @@ -22,7 +22,7 @@ import ReactDOM from 'react-dom' import {Simulate} from 'react-dom/test-utils' import _ from 'lodash' import axios from '@canvas/axios' -import GradingPeriodSet from 'ui/features/account_grading_standards/react/GradingPeriodSet' +import GradingPeriodSet from '../GradingPeriodSet' import gradingPeriodsApi from '@canvas/grading/jquery/gradingPeriodsApi' const wrapper = document.getElementById('fixtures') diff --git a/spec/javascripts/jsx/grading/NewGradingPeriodSetFormSpec.jsx b/ui/features/account_grading_standards/react/__tests__/NewGradingPeriodSetFormSpec.jsx similarity index 98% rename from spec/javascripts/jsx/grading/NewGradingPeriodSetFormSpec.jsx rename to ui/features/account_grading_standards/react/__tests__/NewGradingPeriodSetFormSpec.jsx index baf07ad85d9..71d75c7ec6c 100644 --- a/spec/javascripts/jsx/grading/NewGradingPeriodSetFormSpec.jsx +++ b/ui/features/account_grading_standards/react/__tests__/NewGradingPeriodSetFormSpec.jsx @@ -22,7 +22,7 @@ import ReactDOM from 'react-dom' import {Simulate} from 'react-dom/test-utils' import {defaults} from 'lodash' import setsApi from '@canvas/grading/jquery/gradingPeriodSetsApi' -import NewSetForm from 'ui/features/account_grading_standards/react/NewGradingPeriodSetForm' +import NewSetForm from '../NewGradingPeriodSetForm' import * as FlashAlert from '@canvas/alerts/react/FlashAlert' const wrapper = document.getElementById('fixtures') diff --git a/spec/javascripts/jsx/grading/SearchGradingPeriodsFieldSpec.jsx b/ui/features/account_grading_standards/react/__tests__/SearchGradingPeriodsFieldSpec.jsx similarity index 93% rename from spec/javascripts/jsx/grading/SearchGradingPeriodsFieldSpec.jsx rename to ui/features/account_grading_standards/react/__tests__/SearchGradingPeriodsFieldSpec.jsx index 15c0e9da316..07546a2f66f 100644 --- a/spec/javascripts/jsx/grading/SearchGradingPeriodsFieldSpec.jsx +++ b/ui/features/account_grading_standards/react/__tests__/SearchGradingPeriodsFieldSpec.jsx @@ -20,7 +20,7 @@ import React from 'react' import ReactDOM from 'react-dom' import {Simulate} from 'react-dom/test-utils' -import SearchGradingPeriodsField from 'ui/features/account_grading_standards/react/SearchGradingPeriodsField' +import SearchGradingPeriodsField from '../SearchGradingPeriodsField' const wrapper = document.getElementById('fixtures') diff --git a/spec/coffeescripts/calendar/CalendarEventFilterSpec.js b/ui/features/calendar/__tests__/CalendarEventFilterSpec.js similarity index 98% rename from spec/coffeescripts/calendar/CalendarEventFilterSpec.js rename to ui/features/calendar/__tests__/CalendarEventFilterSpec.js index 2a99f797f00..a04cc10de17 100644 --- a/spec/coffeescripts/calendar/CalendarEventFilterSpec.js +++ b/ui/features/calendar/__tests__/CalendarEventFilterSpec.js @@ -16,9 +16,8 @@ * with this program. If not, see . */ -import CommonEvent from '@canvas/calendar/jquery/CommonEvent/CommonEvent' import commonEventFactory from '@canvas/calendar/jquery/CommonEvent/index' -import CalendarEventFilter from 'ui/features/calendar/CalendarEventFilter' +import CalendarEventFilter from '../CalendarEventFilter' import fakeENV from 'helpers/fakeENV' const test_events = ( diff --git a/spec/coffeescripts/calendar/AgendaViewSpec.js b/ui/features/calendar/backbone/views/__tests__/AgendaViewSpec.js similarity index 99% rename from spec/coffeescripts/calendar/AgendaViewSpec.js rename to ui/features/calendar/backbone/views/__tests__/AgendaViewSpec.js index 40975053990..67e62001ca6 100644 --- a/spec/coffeescripts/calendar/AgendaViewSpec.js +++ b/ui/features/calendar/backbone/views/__tests__/AgendaViewSpec.js @@ -1,6 +1,3 @@ -/* eslint-disable qunit/assert-args */ -/* eslint-disable qunit/no-ok-equality */ - /* * Copyright (C) 2013 - present Instructure, Inc. * @@ -19,6 +16,9 @@ * with this program. If not, see . */ +/* eslint-disable qunit/assert-args */ +/* eslint-disable qunit/no-ok-equality */ + import $ from 'jquery' import 'jquery-migrate' import {isArray, isObject, uniq} from 'lodash' @@ -28,7 +28,7 @@ import fcUtil from '@canvas/calendar/jquery/fcUtil' import denver from 'timezone/America/Denver' import juneau from 'timezone/America/Juneau' import french from 'timezone/fr_FR' -import AgendaView from 'ui/features/calendar/backbone/views/AgendaView' +import AgendaView from '../AgendaView' import EventDataSource from '@canvas/calendar/jquery/EventDataSource' import eventResponse from 'helpers/ajax_mocks/api/v1/calendarEvents' import plannerItemsResponse from 'helpers/ajax_mocks/api/planner/items' diff --git a/spec/coffeescripts/calendar/EditAssignmentDetailsSpec.js b/ui/features/calendar/backbone/views/__tests__/EditAssignmentDetailsSpec.js similarity index 98% rename from spec/coffeescripts/calendar/EditAssignmentDetailsSpec.js rename to ui/features/calendar/backbone/views/__tests__/EditAssignmentDetailsSpec.js index 40a908adcb9..d986c290d07 100644 --- a/spec/coffeescripts/calendar/EditAssignmentDetailsSpec.js +++ b/ui/features/calendar/backbone/views/__tests__/EditAssignmentDetailsSpec.js @@ -18,7 +18,7 @@ import $ from 'jquery' import 'jquery-migrate' -import EditAssignmentDetails from 'ui/features/calendar/backbone/views/EditAssignmentDetails' +import EditAssignmentDetails from '../EditAssignmentDetails' import fcUtil from '@canvas/calendar/jquery/fcUtil' import timezone from 'timezone' import tzInTest from '@instructure/moment-utils/specHelpers' @@ -26,7 +26,7 @@ import detroit from 'timezone/America/Detroit' import french from 'timezone/fr_FR' import fakeENV from 'helpers/fakeENV' import commonEventFactory from '@canvas/calendar/jquery/CommonEvent/index' -import {getI18nFormats} from 'ui/boot/initializers/configureDateTime' +import {getI18nFormats} from '@canvas/datetime/configureDateTime' const fixtures = $('#fixtures') diff --git a/spec/coffeescripts/calendar/EditPlannerNoteDetailsSpec.js b/ui/features/calendar/backbone/views/__tests__/EditPlannerNoteDetailsSpec.js similarity index 96% rename from spec/coffeescripts/calendar/EditPlannerNoteDetailsSpec.js rename to ui/features/calendar/backbone/views/__tests__/EditPlannerNoteDetailsSpec.js index 807d7b0dcce..0688da01548 100644 --- a/spec/coffeescripts/calendar/EditPlannerNoteDetailsSpec.js +++ b/ui/features/calendar/backbone/views/__tests__/EditPlannerNoteDetailsSpec.js @@ -18,7 +18,7 @@ import $ from 'jquery' import 'jquery-migrate' -import EditPlannerNoteDetails from 'ui/features/calendar/backbone/views/EditPlannerNoteDetails' +import EditPlannerNoteDetails from '../EditPlannerNoteDetails' import tzInTest from '@instructure/moment-utils/specHelpers' import fakeENV from 'helpers/fakeENV' import commonEventFactory from '@canvas/calendar/jquery/CommonEvent/index' diff --git a/spec/coffeescripts/calendar/CalendarSpec.js b/ui/features/calendar/jquery/__tests__/CalendarSpec.js similarity index 99% rename from spec/coffeescripts/calendar/CalendarSpec.js rename to ui/features/calendar/jquery/__tests__/CalendarSpec.js index d1fc8fd50af..a818b6dc624 100644 --- a/spec/coffeescripts/calendar/CalendarSpec.js +++ b/ui/features/calendar/jquery/__tests__/CalendarSpec.js @@ -16,7 +16,7 @@ * with this program. If not, see . */ -import Calendar from 'ui/features/calendar/jquery/index' +import Calendar from '../index' import CalendarEvent from '@canvas/calendar/jquery/CommonEvent/CalendarEvent' import {useScope as useI18nScope} from '@canvas/i18n' import fcUtil from '@canvas/calendar/jquery/fcUtil' diff --git a/spec/coffeescripts/calendar/EditAppointmentGroupDetailsSpec.js b/ui/features/calendar/jquery/__tests__/EditAppointmentGroupDetailsSpec.js similarity index 96% rename from spec/coffeescripts/calendar/EditAppointmentGroupDetailsSpec.js rename to ui/features/calendar/jquery/__tests__/EditAppointmentGroupDetailsSpec.js index ee9f60ecac6..337954892be 100644 --- a/spec/coffeescripts/calendar/EditAppointmentGroupDetailsSpec.js +++ b/ui/features/calendar/jquery/__tests__/EditAppointmentGroupDetailsSpec.js @@ -18,7 +18,7 @@ import $ from 'jquery' import 'jquery-migrate' -import EditAppointmentGroupDetails from 'ui/features/calendar/jquery/EditAppointmentGroupDetails' +import EditAppointmentGroupDetails from '../EditAppointmentGroupDetails' import fcUtil from '@canvas/calendar/jquery/fcUtil' import * as tz from '@instructure/moment-utils' diff --git a/spec/coffeescripts/calendar/TimeBlockListSpec.js b/ui/features/calendar/jquery/__tests__/TimeBlockListSpec.js similarity index 96% rename from spec/coffeescripts/calendar/TimeBlockListSpec.js rename to ui/features/calendar/jquery/__tests__/TimeBlockListSpec.js index b59b6b87b2f..6e6dff5c593 100644 --- a/spec/coffeescripts/calendar/TimeBlockListSpec.js +++ b/ui/features/calendar/jquery/__tests__/TimeBlockListSpec.js @@ -18,8 +18,7 @@ import $ from 'jquery' import 'jquery-migrate' -import TimeBlockList from 'ui/features/calendar/jquery/TimeBlockList' -import moment from 'moment' +import TimeBlockList from '../TimeBlockList' import fcUtil from '@canvas/calendar/jquery/fcUtil' QUnit.module('TimeBlockList', { @@ -103,7 +102,6 @@ test('should not validate if a row is incomplete', function () { }) test('should still validate if a row is fully blank', function () { - const row = this.me.addRow() ok(this.me.validate(), 'should validate') }) @@ -124,8 +122,6 @@ test('should split correctly', function () { QUnit.module('TimeBlockList with no time blocks', { setup() { - const wrappedDate = str => moment(new Date(str)) - this.$holder = $('').appendTo('#fixtures') this.$splitter = $('').appendTo('#fixtures') this.blocks = [] diff --git a/spec/coffeescripts/calendar/TimeBlockRowSpec.js b/ui/features/calendar/jquery/__tests__/TimeBlockRowSpec.js similarity index 96% rename from spec/coffeescripts/calendar/TimeBlockRowSpec.js rename to ui/features/calendar/jquery/__tests__/TimeBlockRowSpec.js index 5f406b9d5c8..484584ba0c3 100644 --- a/spec/coffeescripts/calendar/TimeBlockRowSpec.js +++ b/ui/features/calendar/jquery/__tests__/TimeBlockRowSpec.js @@ -19,13 +19,13 @@ import $ from 'jquery' import 'jquery-migrate' import fcUtil from '@canvas/calendar/jquery/fcUtil' -import TimeBlockList from 'ui/features/calendar/jquery/TimeBlockList' -import TimeBlockRow from 'ui/features/calendar/jquery/TimeBlockRow' +import TimeBlockList from '../TimeBlockList' +import TimeBlockRow from '../TimeBlockRow' import * as tz from '@instructure/moment-utils' import tzInTest from '@instructure/moment-utils/specHelpers' import timezone from 'timezone' import detroit from 'timezone/America/Detroit' -import {getI18nFormats} from 'ui/boot/initializers/configureDateTime' +import {getI18nFormats} from '@canvas/datetime/configureDateTime' const nextYear = new Date().getFullYear() + 1 const unfudged_start = tz.parse(`${nextYear}-02-03T12:32:00Z`) diff --git a/ui/features/course_people/react/components/RosterTableLastActivity/__tests__/RosterTableLastActivity.test.jsx b/ui/features/course_people/react/components/RosterTableLastActivity/__tests__/RosterTableLastActivity.test.jsx index fc4c75143fa..6ec3e2b2d30 100644 --- a/ui/features/course_people/react/components/RosterTableLastActivity/__tests__/RosterTableLastActivity.test.jsx +++ b/ui/features/course_people/react/components/RosterTableLastActivity/__tests__/RosterTableLastActivity.test.jsx @@ -23,7 +23,7 @@ import tz from 'timezone' import chicago from 'timezone/America/Chicago' import detroit from 'timezone/America/Detroit' import tzInTest from '@instructure/moment-utils/specHelpers' -import {getI18nFormats} from '../../../../../../boot/initializers/configureDateTime' +import {getI18nFormats} from '@canvas/datetime/configureDateTime' const observerEnrollment = { id: '1', diff --git a/spec/javascripts/jsx/grading/GradeSummarySpec.js b/ui/features/grade_summary/jquery/__tests__/GradeSummarySpec.js similarity index 99% rename from spec/javascripts/jsx/grading/GradeSummarySpec.js rename to ui/features/grade_summary/jquery/__tests__/GradeSummarySpec.js index f01504f6102..c9b4688e992 100644 --- a/spec/javascripts/jsx/grading/GradeSummarySpec.js +++ b/ui/features/grade_summary/jquery/__tests__/GradeSummarySpec.js @@ -25,9 +25,9 @@ import {useScope as useI18nScope} from '@canvas/i18n' import fakeENV from 'helpers/fakeENV' import numberHelper from '@canvas/i18n/numberHelper' import CourseGradeCalculator from '@canvas/grading/CourseGradeCalculator' -import GradeSummary from 'ui/features/grade_summary/jquery/index' -import {createCourseGradesWithGradingPeriods} from '../gradebook/GradeCalculatorSpecHelper' -import useStore from 'ui/features/grade_summary/react/stores' +import GradeSummary from '../index' +import {createCourseGradesWithGradingPeriods} from '../../../../../spec/javascripts/jsx/gradebook/GradeCalculatorSpecHelper' +import useStore from '../../react/stores' const I18n = useI18nScope('gradingGradeSummary') diff --git a/spec/javascripts/jsx/grading/AssignmentPostingPolicyTray/ApiSpec.js b/ui/features/gradebook/react/AssignmentPostingPolicyTray/__tests__/ApiSpec.js similarity index 95% rename from spec/javascripts/jsx/grading/AssignmentPostingPolicyTray/ApiSpec.js rename to ui/features/gradebook/react/AssignmentPostingPolicyTray/__tests__/ApiSpec.js index 54683c12220..37f05bbd087 100644 --- a/spec/javascripts/jsx/grading/AssignmentPostingPolicyTray/ApiSpec.js +++ b/ui/features/gradebook/react/AssignmentPostingPolicyTray/__tests__/ApiSpec.js @@ -16,8 +16,8 @@ * with this program. If not, see . */ -import MockCanvasClient from '../../../support/MockCanvasClient' -import * as Api from 'ui/features/gradebook/react/AssignmentPostingPolicyTray/Api' +import MockCanvasClient from '../../../../../../spec/javascripts/support/MockCanvasClient' +import * as Api from '../Api' QUnit.module('AssignmentPostingPolicyTray Api', () => { QUnit.module('.setAssignmentPostPolicy()', hooks => { diff --git a/spec/javascripts/jsx/grading/AssignmentPostingPolicyTray/AssignmentPostingPolicyTraySpec.jsx b/ui/features/gradebook/react/AssignmentPostingPolicyTray/__tests__/AssignmentPostingPolicyTraySpec.jsx similarity index 98% rename from spec/javascripts/jsx/grading/AssignmentPostingPolicyTray/AssignmentPostingPolicyTraySpec.jsx rename to ui/features/gradebook/react/AssignmentPostingPolicyTray/__tests__/AssignmentPostingPolicyTraySpec.jsx index 8268d92c41a..6cfbafb2cd7 100644 --- a/spec/javascripts/jsx/grading/AssignmentPostingPolicyTray/AssignmentPostingPolicyTraySpec.jsx +++ b/ui/features/gradebook/react/AssignmentPostingPolicyTray/__tests__/AssignmentPostingPolicyTraySpec.jsx @@ -20,8 +20,8 @@ import React from 'react' import ReactDOM from 'react-dom' import {waitFor} from '@testing-library/react' -import AssignmentPostingPolicyTray from 'ui/features/gradebook/react/AssignmentPostingPolicyTray/index' -import * as Api from 'ui/features/gradebook/react/AssignmentPostingPolicyTray/Api' +import AssignmentPostingPolicyTray from '../index' +import * as Api from '../Api' import * as FlashAlert from '@canvas/alerts/react/FlashAlert' QUnit.module('AssignmentPostingPolicyTray', suiteHooks => { diff --git a/spec/javascripts/jsx/grading/AssignmentPostingPolicyTray/LayoutSpec.jsx b/ui/features/gradebook/react/AssignmentPostingPolicyTray/__tests__/LayoutSpec.jsx similarity index 98% rename from spec/javascripts/jsx/grading/AssignmentPostingPolicyTray/LayoutSpec.jsx rename to ui/features/gradebook/react/AssignmentPostingPolicyTray/__tests__/LayoutSpec.jsx index a76508e93ae..9572c985d30 100644 --- a/spec/javascripts/jsx/grading/AssignmentPostingPolicyTray/LayoutSpec.jsx +++ b/ui/features/gradebook/react/AssignmentPostingPolicyTray/__tests__/LayoutSpec.jsx @@ -19,7 +19,7 @@ import React from 'react' import ReactDOM from 'react-dom' -import Layout from 'ui/features/gradebook/react/AssignmentPostingPolicyTray/Layout' +import Layout from '../Layout' QUnit.module('AssignmentPostingPolicyTray Layout', suiteHooks => { let $container diff --git a/spec/javascripts/jsx/grading/LatePolicyApplicatorSpec.js b/ui/features/gradebook/react/__tests__/LatePolicyApplicatorSpec.js similarity index 99% rename from spec/javascripts/jsx/grading/LatePolicyApplicatorSpec.js rename to ui/features/gradebook/react/__tests__/LatePolicyApplicatorSpec.js index 4f92b5966ab..792ac4ea4a1 100644 --- a/spec/javascripts/jsx/grading/LatePolicyApplicatorSpec.js +++ b/ui/features/gradebook/react/__tests__/LatePolicyApplicatorSpec.js @@ -16,7 +16,7 @@ * with this program. If not, see . */ -import LatePolicyApplicator from 'ui/features/gradebook/react/LatePolicyApplicator' +import LatePolicyApplicator from '../LatePolicyApplicator' QUnit.module('LatePolicyApplicator#processSubmission', function () { let assignment diff --git a/spec/coffeescripts/gradebook/GradebookHelpersSpec.js b/ui/features/screenreader_gradebook/__tests__/GradebookHelpersSpec.js similarity index 94% rename from spec/coffeescripts/gradebook/GradebookHelpersSpec.js rename to ui/features/screenreader_gradebook/__tests__/GradebookHelpersSpec.js index 0be82b287db..6e82f1ade19 100644 --- a/spec/coffeescripts/gradebook/GradebookHelpersSpec.js +++ b/ui/features/screenreader_gradebook/__tests__/GradebookHelpersSpec.js @@ -18,8 +18,8 @@ import $ from 'jquery' import 'jquery-migrate' -import GradebookHelpers from 'ui/features/screenreader_gradebook/helpers' -import GradebookConstants from 'ui/features/screenreader_gradebook/constants' +import GradebookHelpers from '../helpers' +import GradebookConstants from '../constants' QUnit.module('GradebookHelpers#noErrorsOnPage', { setup() { diff --git a/spec/coffeescripts/gradebook/GradebookHeaderMenuSpec.jsx b/ui/features/screenreader_gradebook/jquery/__tests__/GradebookHeaderMenuSpec.jsx similarity index 99% rename from spec/coffeescripts/gradebook/GradebookHeaderMenuSpec.jsx rename to ui/features/screenreader_gradebook/jquery/__tests__/GradebookHeaderMenuSpec.jsx index 0ada98f07a3..e0a6a9c7222 100644 --- a/spec/coffeescripts/gradebook/GradebookHeaderMenuSpec.jsx +++ b/ui/features/screenreader_gradebook/jquery/__tests__/GradebookHeaderMenuSpec.jsx @@ -19,7 +19,7 @@ import $ from 'jquery' import 'jquery-migrate' import fakeENV from 'helpers/fakeENV' -import GradebookHeaderMenu from 'ui/features/screenreader_gradebook/jquery/GradebookHeaderMenu' +import GradebookHeaderMenu from '../GradebookHeaderMenu' import SetDefaultGradeDialog from '@canvas/grading/jquery/SetDefaultGradeDialog' import CurveGradesDialog from '@canvas/grading/jquery/CurveGradesDialog' import React from 'react' diff --git a/spec/coffeescripts/gradebook/SubmissionDetailsDialogSpec.js b/ui/features/screenreader_gradebook/jquery/__tests__/SubmissionDetailsDialogSpec.js similarity index 97% rename from spec/coffeescripts/gradebook/SubmissionDetailsDialogSpec.js rename to ui/features/screenreader_gradebook/jquery/__tests__/SubmissionDetailsDialogSpec.js index e929cb87a4f..014fe295f61 100644 --- a/spec/coffeescripts/gradebook/SubmissionDetailsDialogSpec.js +++ b/ui/features/screenreader_gradebook/jquery/__tests__/SubmissionDetailsDialogSpec.js @@ -19,9 +19,9 @@ import $ from 'jquery' import 'jquery-migrate' import Assignment from '@canvas/assignments/backbone/models/Assignment' -import SubmissionDetailsDialog from 'ui/features/screenreader_gradebook/jquery/SubmissionDetailsDialog' +import SubmissionDetailsDialog from '../SubmissionDetailsDialog' import qs from 'qs' -import 'ui/features/screenreader_gradebook/jst/SubmissionDetailsDialog.handlebars' +import '../../jst/SubmissionDetailsDialog.handlebars' QUnit.module('SubmissionDetailsDialog', { setup() { diff --git a/spec/javascripts/jsx/grading/quizzesNextSpeedGradingSpec.js b/ui/features/speed_grader/__tests__/quizzesNextSpeedGradingSpec.js similarity index 99% rename from spec/javascripts/jsx/grading/quizzesNextSpeedGradingSpec.js rename to ui/features/speed_grader/__tests__/quizzesNextSpeedGradingSpec.js index 45970bfaf67..84fa0d82e87 100644 --- a/spec/javascripts/jsx/grading/quizzesNextSpeedGradingSpec.js +++ b/ui/features/speed_grader/__tests__/quizzesNextSpeedGradingSpec.js @@ -16,7 +16,7 @@ * with this program. If not, see . */ -import QuizzesNextSpeedGrading from 'ui/features/speed_grader/QuizzesNextSpeedGrading' +import QuizzesNextSpeedGrading from '../QuizzesNextSpeedGrading' const postMessageStub = sinon.stub() const fakeIframeHolder = { diff --git a/spec/coffeescripts/calendar/TimeBlockListManagerSpec.js b/ui/shared/calendar/__tests__/TimeBlockListManagerSpec.js similarity index 98% rename from spec/coffeescripts/calendar/TimeBlockListManagerSpec.js rename to ui/shared/calendar/__tests__/TimeBlockListManagerSpec.js index 04857f79f91..90a0471e9df 100644 --- a/spec/coffeescripts/calendar/TimeBlockListManagerSpec.js +++ b/ui/shared/calendar/__tests__/TimeBlockListManagerSpec.js @@ -18,7 +18,7 @@ import $ from 'jquery' import 'jquery-migrate' -import TimeBlockListManager from '@canvas/calendar/TimeBlockListManager' +import TimeBlockListManager from '../TimeBlockListManager' import moment from 'moment' QUnit.module('TimeBlockListManager', { diff --git a/spec/coffeescripts/calendar/CommonEventSpec.js b/ui/shared/calendar/jquery/CommonEvent/__tests__/CommonEventSpec.js similarity index 97% rename from spec/coffeescripts/calendar/CommonEventSpec.js rename to ui/shared/calendar/jquery/CommonEvent/__tests__/CommonEventSpec.js index fdc73b52dd6..ef7b9053cfa 100644 --- a/spec/coffeescripts/calendar/CommonEventSpec.js +++ b/ui/shared/calendar/jquery/CommonEvent/__tests__/CommonEventSpec.js @@ -16,8 +16,7 @@ * with this program. If not, see . */ -import CommonEvent from '@canvas/calendar/jquery/CommonEvent/CommonEvent' -import commonEventFactory from '@canvas/calendar/jquery/CommonEvent/index' +import commonEventFactory from '../index' import fakeENV from 'helpers/fakeENV' QUnit.module('CommonEvent', { diff --git a/spec/coffeescripts/calendar/EventDataSourceSpec.js b/ui/shared/calendar/jquery/__tests__/EventDataSourceSpec.js similarity index 99% rename from spec/coffeescripts/calendar/EventDataSourceSpec.js rename to ui/shared/calendar/jquery/__tests__/EventDataSourceSpec.js index 07a37d86dff..b4f7136831b 100644 --- a/spec/coffeescripts/calendar/EventDataSourceSpec.js +++ b/ui/shared/calendar/jquery/__tests__/EventDataSourceSpec.js @@ -16,7 +16,7 @@ * with this program. If not, see . */ -import EventDataSource from '@canvas/calendar/jquery/EventDataSource' +import EventDataSource from '../EventDataSource' import fcUtil from '@canvas/calendar/jquery/fcUtil' import * as tz from '@instructure/moment-utils' import denver from 'timezone/America/Denver' diff --git a/spec/coffeescripts/calendar/fcUtilSpec.js b/ui/shared/calendar/jquery/__tests__/fcUtilSpec.js similarity index 97% rename from spec/coffeescripts/calendar/fcUtilSpec.js rename to ui/shared/calendar/jquery/__tests__/fcUtilSpec.js index 56318bf15ca..5b7ffea02f8 100644 --- a/spec/coffeescripts/calendar/fcUtilSpec.js +++ b/ui/shared/calendar/jquery/__tests__/fcUtilSpec.js @@ -16,7 +16,7 @@ * with this program. If not, see . */ -import fcUtil from '@canvas/calendar/jquery/fcUtil' +import fcUtil from '../fcUtil' import * as tz from '@instructure/moment-utils' import tzInTest from '@instructure/moment-utils/specHelpers' import timezone from 'timezone' diff --git a/ui/boot/initializers/configureDateTime.js b/ui/shared/datetime/configureDateTime.js similarity index 100% rename from ui/boot/initializers/configureDateTime.js rename to ui/shared/datetime/configureDateTime.js diff --git a/ui/boot/initializers/configureDateTimeMomentParser.js b/ui/shared/datetime/configureDateTimeMomentParser.js similarity index 100% rename from ui/boot/initializers/configureDateTimeMomentParser.js rename to ui/shared/datetime/configureDateTimeMomentParser.js diff --git a/spec/coffeescripts/calendar/MissingDateDialogViewSpec.js b/ui/shared/due-dates/backbone/views/__tests__/MissingDateDialogViewSpec.js similarity index 96% rename from spec/coffeescripts/calendar/MissingDateDialogViewSpec.js rename to ui/shared/due-dates/backbone/views/__tests__/MissingDateDialogViewSpec.js index bf7082bb205..5cddf42ee68 100644 --- a/spec/coffeescripts/calendar/MissingDateDialogViewSpec.js +++ b/ui/shared/due-dates/backbone/views/__tests__/MissingDateDialogViewSpec.js @@ -18,7 +18,7 @@ import $ from 'jquery' import 'jquery-migrate' -import MissingDateDialogView from '@canvas/due-dates/backbone/views/MissingDateDialogView' +import MissingDateDialogView from '../MissingDateDialogView' QUnit.module('MissingDateDialogView', { setup() { diff --git a/spec/javascripts/jsx/grading/StatusPillSpec.jsx b/ui/shared/grading-status-pill/react/__tests__/StatusPillSpec.jsx similarity index 98% rename from spec/javascripts/jsx/grading/StatusPillSpec.jsx rename to ui/shared/grading-status-pill/react/__tests__/StatusPillSpec.jsx index e6f2dedc872..e04647bbc8f 100644 --- a/spec/javascripts/jsx/grading/StatusPillSpec.jsx +++ b/ui/shared/grading-status-pill/react/__tests__/StatusPillSpec.jsx @@ -19,7 +19,7 @@ import 'react' import ReactDOM from 'react-dom' import {Pill} from '@instructure/ui-pill' -import StatusPill from '@canvas/grading-status-pill' +import StatusPill from '..' const wrapper = document.getElementById('fixtures') diff --git a/spec/javascripts/jsx/grading/helpers/GradeInputHelperSpec.js b/ui/shared/grading/__tests__/GradeInputHelperSpec.js similarity index 99% rename from spec/javascripts/jsx/grading/helpers/GradeInputHelperSpec.js rename to ui/shared/grading/__tests__/GradeInputHelperSpec.js index d0869fe2619..3535e0c5193 100644 --- a/spec/javascripts/jsx/grading/helpers/GradeInputHelperSpec.js +++ b/ui/shared/grading/__tests__/GradeInputHelperSpec.js @@ -16,12 +16,9 @@ * with this program. If not, see . */ -import round from '@canvas/round' -import * as GradeInputHelper from '@canvas/grading/GradeInputHelper' +import * as GradeInputHelper from '../GradeInputHelper' import fakeENV from 'helpers/fakeENV' -/* eslint-disable qunit/no-identical-names */ - QUnit.module('GradeInputHelper', suiteHooks => { suiteHooks.beforeEach(() => { fakeENV.setup({ diff --git a/spec/javascripts/jsx/grading/helpers/GradingPeriodsHelperSpec.js b/ui/shared/grading/__tests__/GradingPeriodsHelperSpec.js similarity index 98% rename from spec/javascripts/jsx/grading/helpers/GradingPeriodsHelperSpec.js rename to ui/shared/grading/__tests__/GradingPeriodsHelperSpec.js index dda62903bbc..9dd479ea0f0 100644 --- a/spec/javascripts/jsx/grading/helpers/GradingPeriodsHelperSpec.js +++ b/ui/shared/grading/__tests__/GradingPeriodsHelperSpec.js @@ -16,7 +16,7 @@ * with this program. If not, see . */ -import GradingPeriodsHelper from '@canvas/grading/GradingPeriodsHelper' +import GradingPeriodsHelper from '../GradingPeriodsHelper' const DATE_IN_FIRST_PERIOD = new Date('July 15, 2015') const DATE_IN_LAST_PERIOD = new Date('Sep 15, 2015') diff --git a/spec/javascripts/jsx/grading/helpers/OutlierScoreHelperSpec.js b/ui/shared/grading/__tests__/OutlierScoreHelperSpec.js similarity index 97% rename from spec/javascripts/jsx/grading/helpers/OutlierScoreHelperSpec.js rename to ui/shared/grading/__tests__/OutlierScoreHelperSpec.js index 5d9a07e82d7..a9ffb4134d5 100644 --- a/spec/javascripts/jsx/grading/helpers/OutlierScoreHelperSpec.js +++ b/ui/shared/grading/__tests__/OutlierScoreHelperSpec.js @@ -16,7 +16,7 @@ * with this program. If not, see . */ -import OutlierScoreHelper, {isUnusuallyHigh} from '@canvas/grading/OutlierScoreHelper' +import OutlierScoreHelper, {isUnusuallyHigh} from '../OutlierScoreHelper' import GRADEBOOK_TRANSLATIONS from '@canvas/grading/GradebookTranslations' diff --git a/spec/javascripts/jsx/grading/helpers/SubmissionHelperSpec.js b/ui/shared/grading/__tests__/SubmissionHelperSpec.js similarity index 99% rename from spec/javascripts/jsx/grading/helpers/SubmissionHelperSpec.js rename to ui/shared/grading/__tests__/SubmissionHelperSpec.js index 60def1b6c1c..1140ef6528c 100644 --- a/spec/javascripts/jsx/grading/helpers/SubmissionHelperSpec.js +++ b/ui/shared/grading/__tests__/SubmissionHelperSpec.js @@ -16,12 +16,7 @@ * with this program. If not, see . */ -import { - isPostable, - isHideable, - extractSimilarityInfo, - similarityIcon, -} from '@canvas/grading/SubmissionHelper' +import {isPostable, isHideable, extractSimilarityInfo, similarityIcon} from '../SubmissionHelper' QUnit.module('SubmissionHelper', suiteHooks => { let submission diff --git a/spec/javascripts/jsx/grading/SpecificSectionsSpec.jsx b/ui/shared/grading/react/__tests__/SpecificSectionsSpec.jsx similarity index 97% rename from spec/javascripts/jsx/grading/SpecificSectionsSpec.jsx rename to ui/shared/grading/react/__tests__/SpecificSectionsSpec.jsx index a87f849fbe6..a676a3ba7ac 100644 --- a/spec/javascripts/jsx/grading/SpecificSectionsSpec.jsx +++ b/ui/shared/grading/react/__tests__/SpecificSectionsSpec.jsx @@ -19,7 +19,7 @@ import React from 'react' import ReactDOM from 'react-dom' -import SpecificSections from '@canvas/grading/react/SpecificSections' +import SpecificSections from '../SpecificSections' QUnit.module('SpecificSections', suiteHooks => { let $container diff --git a/spec/javascripts/jsx/grading/HideAssignmentGradesTray/ApiSpec.js b/ui/shared/hide-assignment-grades-tray/react/__tests__/ApiSpec.js similarity index 97% rename from spec/javascripts/jsx/grading/HideAssignmentGradesTray/ApiSpec.js rename to ui/shared/hide-assignment-grades-tray/react/__tests__/ApiSpec.js index 95c57301274..a951c071583 100644 --- a/spec/javascripts/jsx/grading/HideAssignmentGradesTray/ApiSpec.js +++ b/ui/shared/hide-assignment-grades-tray/react/__tests__/ApiSpec.js @@ -16,8 +16,8 @@ * with this program. If not, see . */ -import MockCanvasClient from '../../../support/MockCanvasClient' -import * as Api from '@canvas/hide-assignment-grades-tray/react/Api' +import MockCanvasClient from '../../../../../spec/javascripts/support/MockCanvasClient' +import * as Api from '../Api' QUnit.module('HideAssignmentGradesTray Api', suiteHooks => { const ASSIGNMENT_ID = '23' diff --git a/spec/javascripts/jsx/grading/HideAssignmentGradesTray/FormContentSpec.jsx b/ui/shared/hide-assignment-grades-tray/react/__tests__/FormContentSpec.jsx similarity index 98% rename from spec/javascripts/jsx/grading/HideAssignmentGradesTray/FormContentSpec.jsx rename to ui/shared/hide-assignment-grades-tray/react/__tests__/FormContentSpec.jsx index 33795ca72d2..afe88aa1f25 100644 --- a/spec/javascripts/jsx/grading/HideAssignmentGradesTray/FormContentSpec.jsx +++ b/ui/shared/hide-assignment-grades-tray/react/__tests__/FormContentSpec.jsx @@ -19,7 +19,7 @@ import React from 'react' import ReactDOM from 'react-dom' -import FormContent from '@canvas/hide-assignment-grades-tray/react/FormContent' +import FormContent from '../FormContent' QUnit.module('HideAssignmentGradesTray FormContent', suiteHooks => { let $container diff --git a/spec/javascripts/jsx/grading/HideAssignmentGradesTray/HideAssignmentGradesTraySpec.jsx b/ui/shared/hide-assignment-grades-tray/react/__tests__/HideAssignmentGradesTraySpec.jsx similarity index 99% rename from spec/javascripts/jsx/grading/HideAssignmentGradesTray/HideAssignmentGradesTraySpec.jsx rename to ui/shared/hide-assignment-grades-tray/react/__tests__/HideAssignmentGradesTraySpec.jsx index 02dcb67920d..10e1d5e369d 100644 --- a/spec/javascripts/jsx/grading/HideAssignmentGradesTray/HideAssignmentGradesTraySpec.jsx +++ b/ui/shared/hide-assignment-grades-tray/react/__tests__/HideAssignmentGradesTraySpec.jsx @@ -20,7 +20,7 @@ import React from 'react' import ReactDOM from 'react-dom' import {waitFor} from '@testing-library/react' -import HideAssignmentGradesTray from '@canvas/hide-assignment-grades-tray' +import HideAssignmentGradesTray from '..' import * as Api from '@canvas/hide-assignment-grades-tray/react/Api' import * as FlashAlert from '@canvas/alerts/react/FlashAlert' diff --git a/spec/javascripts/jsx/grading/HideAssignmentGradesTray/LayoutSpec.jsx b/ui/shared/hide-assignment-grades-tray/react/__tests__/LayoutSpec.jsx similarity index 98% rename from spec/javascripts/jsx/grading/HideAssignmentGradesTray/LayoutSpec.jsx rename to ui/shared/hide-assignment-grades-tray/react/__tests__/LayoutSpec.jsx index 1dd255690dd..e98f43ccc11 100644 --- a/spec/javascripts/jsx/grading/HideAssignmentGradesTray/LayoutSpec.jsx +++ b/ui/shared/hide-assignment-grades-tray/react/__tests__/LayoutSpec.jsx @@ -19,7 +19,7 @@ import React from 'react' import ReactDOM from 'react-dom' -import Layout from '@canvas/hide-assignment-grades-tray/react/Layout' +import Layout from '../Layout' QUnit.module('HideAssignmentGradesTray Layout', suiteHooks => { let $container diff --git a/spec/coffeescripts/gradebook/OutcomeGradebookGridSpec.js b/ui/shared/outcome-gradebook-grid/__tests__/OutcomeGradebookGridSpec.js similarity index 99% rename from spec/coffeescripts/gradebook/OutcomeGradebookGridSpec.js rename to ui/shared/outcome-gradebook-grid/__tests__/OutcomeGradebookGridSpec.js index 82dc12f6544..093c7a4ec79 100644 --- a/spec/coffeescripts/gradebook/OutcomeGradebookGridSpec.js +++ b/ui/shared/outcome-gradebook-grid/__tests__/OutcomeGradebookGridSpec.js @@ -17,7 +17,7 @@ */ import {isEqual} from 'lodash' -import Grid from '@canvas/outcome-gradebook-grid' +import Grid from '..' import fakeENV from 'helpers/fakeENV' QUnit.module('OutcomeGradebookGrid', { diff --git a/spec/javascripts/jsx/grading/PostAssignmentGradesTray/ApiSpec.js b/ui/shared/post-assignment-grades-tray/react/__tests__/ApiSpec.js similarity index 98% rename from spec/javascripts/jsx/grading/PostAssignmentGradesTray/ApiSpec.js rename to ui/shared/post-assignment-grades-tray/react/__tests__/ApiSpec.js index 0c87543f469..474fe34fbc3 100644 --- a/spec/javascripts/jsx/grading/PostAssignmentGradesTray/ApiSpec.js +++ b/ui/shared/post-assignment-grades-tray/react/__tests__/ApiSpec.js @@ -16,8 +16,8 @@ * with this program. If not, see . */ -import MockCanvasClient from '../../../support/MockCanvasClient' -import * as Api from '@canvas/post-assignment-grades-tray/react/Api' +import MockCanvasClient from '../../../../../spec/javascripts/support/MockCanvasClient' +import * as Api from '../Api' QUnit.module('PostAssignmentGradesTray Api', suiteHooks => { const ASSIGNMENT_ID = '23' diff --git a/spec/javascripts/jsx/grading/PostAssignmentGradesTray/FormContentSpec.jsx b/ui/shared/post-assignment-grades-tray/react/__tests__/FormContentSpec.jsx similarity index 98% rename from spec/javascripts/jsx/grading/PostAssignmentGradesTray/FormContentSpec.jsx rename to ui/shared/post-assignment-grades-tray/react/__tests__/FormContentSpec.jsx index c1736e632e5..054a430953b 100644 --- a/spec/javascripts/jsx/grading/PostAssignmentGradesTray/FormContentSpec.jsx +++ b/ui/shared/post-assignment-grades-tray/react/__tests__/FormContentSpec.jsx @@ -19,8 +19,8 @@ import React from 'react' import ReactDOM from 'react-dom' -import FormContent from '@canvas/post-assignment-grades-tray/react/FormContent' -import {EVERYONE} from '@canvas/post-assignment-grades-tray/react/PostTypes' +import FormContent from '../FormContent' +import {EVERYONE} from '../PostTypes' QUnit.module('PostAssignmentGradesTray FormContent', suiteHooks => { let $container diff --git a/spec/javascripts/jsx/grading/PostAssignmentGradesTray/LayoutSpec.jsx b/ui/shared/post-assignment-grades-tray/react/__tests__/LayoutSpec.jsx similarity index 97% rename from spec/javascripts/jsx/grading/PostAssignmentGradesTray/LayoutSpec.jsx rename to ui/shared/post-assignment-grades-tray/react/__tests__/LayoutSpec.jsx index 419fc1c594a..9bd22aadcf5 100644 --- a/spec/javascripts/jsx/grading/PostAssignmentGradesTray/LayoutSpec.jsx +++ b/ui/shared/post-assignment-grades-tray/react/__tests__/LayoutSpec.jsx @@ -19,8 +19,8 @@ import React from 'react' import ReactDOM from 'react-dom' -import Layout from '@canvas/post-assignment-grades-tray/react/Layout' -import {EVERYONE} from '@canvas/post-assignment-grades-tray/react/PostTypes' +import Layout from '../Layout' +import {EVERYONE} from '../PostTypes' QUnit.module('PostAssignmentGradesTray Layout', suiteHooks => { let $container diff --git a/spec/javascripts/jsx/grading/PostAssignmentGradesTray/PostAssignmentGradesTraySpec.jsx b/ui/shared/post-assignment-grades-tray/react/__tests__/PostAssignmentGradesTraySpec.jsx similarity index 99% rename from spec/javascripts/jsx/grading/PostAssignmentGradesTray/PostAssignmentGradesTraySpec.jsx rename to ui/shared/post-assignment-grades-tray/react/__tests__/PostAssignmentGradesTraySpec.jsx index 59b1c8def33..cf70d822ff3 100644 --- a/spec/javascripts/jsx/grading/PostAssignmentGradesTray/PostAssignmentGradesTraySpec.jsx +++ b/ui/shared/post-assignment-grades-tray/react/__tests__/PostAssignmentGradesTraySpec.jsx @@ -20,7 +20,7 @@ import React from 'react' import ReactDOM from 'react-dom' import {waitFor} from '@testing-library/react' -import PostAssignmentGradesTray from '@canvas/post-assignment-grades-tray' +import PostAssignmentGradesTray from '..' import * as Api from '@canvas/post-assignment-grades-tray/react/Api' import * as FlashAlert from '@canvas/alerts/react/FlashAlert' diff --git a/spec/javascripts/jsx/grading/PostAssignmentGradesTray/PostTypesSpec.jsx b/ui/shared/post-assignment-grades-tray/react/__tests__/PostTypesSpec.jsx similarity index 98% rename from spec/javascripts/jsx/grading/PostAssignmentGradesTray/PostTypesSpec.jsx rename to ui/shared/post-assignment-grades-tray/react/__tests__/PostTypesSpec.jsx index 0ba40fb41fb..a8c8665a24a 100644 --- a/spec/javascripts/jsx/grading/PostAssignmentGradesTray/PostTypesSpec.jsx +++ b/ui/shared/post-assignment-grades-tray/react/__tests__/PostTypesSpec.jsx @@ -19,7 +19,7 @@ import React from 'react' import ReactDOM from 'react-dom' -import PostTypes from '@canvas/post-assignment-grades-tray/react/PostTypes' +import PostTypes from '../PostTypes' QUnit.module('PostAssignmentGradesTray PostTypes', suiteHooks => { let $container