require jQuery when it is used
Change-Id: Ibbc93ceff7e7863af52d89cf7ef9166e404c59cc Reviewed-on: https://gerrit.instructure.com/106496 Tested-by: Jenkins Reviewed-by: Simon Williams <simon@instructure.com> Reviewed-by: Clay Diffrient <cdiffrient@instructure.com> Product-Review: Ryan Shaw <ryan@instructure.com> QA-Review: Ryan Shaw <ryan@instructure.com>
This commit is contained in:
parent
8c16bbd999
commit
ee4c1228a3
|
@ -1,8 +1,9 @@
|
|||
define [
|
||||
'jquery'
|
||||
'../start_app'
|
||||
'ember'
|
||||
'../shared_ajax_fixtures'
|
||||
], (startApp, Ember, fixtures) ->
|
||||
], ($, startApp, Ember, fixtures) ->
|
||||
|
||||
App = null
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
define ['Backbone'], (Backbone) ->
|
||||
define ['jquery', 'Backbone'], ($, Backbone) ->
|
||||
|
||||
class AvatarUploadBaseView extends Backbone.View
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import I18n from 'i18n!external_tools'
|
||||
import $ from 'jquery'
|
||||
import React from 'react'
|
||||
import Header from 'jsx/external_apps/components/Header'
|
||||
import ExternalToolsTable from 'jsx/external_apps/components/ExternalToolsTable'
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
define(["jquery"], function() {
|
||||
define(["jquery"], function($) {
|
||||
|
||||
/* Make an html snippet plain text.
|
||||
*
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
define ['collaborations'], (collaborations) ->
|
||||
define ['collaborations', 'jquery', 'jquery.ajaxJSON'], (collaborations, $) ->
|
||||
|
||||
oldAjaxJSON = null
|
||||
QUnit.module "Collaborations",
|
||||
|
@ -54,4 +54,4 @@ define ['collaborations'], (collaborations) ->
|
|||
$("#fixtures").append(dom)
|
||||
$.ajaxJSON = (url, method, data, callback)->
|
||||
equal url, 'http://url/'
|
||||
collaborations.Events.onExternalContentReady({}, {service_id: 1, contentItems: {}})
|
||||
collaborations.Events.onExternalContentReady({}, {service_id: 1, contentItems: {}})
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
define ['tinymce.editor_box_list'], (EditorBoxList)->
|
||||
define ['tinymce.editor_box_list', 'jquery'], (EditorBoxList, $)->
|
||||
list = null
|
||||
QUnit.module "EditorBoxList",
|
||||
setup: ->
|
||||
|
|
|
@ -2,7 +2,9 @@ define [
|
|||
'axios'
|
||||
'helpers/fakeENV',
|
||||
'compiled/api/gradingPeriodSetsApi'
|
||||
], (axios, fakeENV, api) ->
|
||||
'jquery'
|
||||
'jquery.ajaxJSON'
|
||||
], (axios, fakeENV, api, $) ->
|
||||
deserializedSets = [
|
||||
{
|
||||
id: '1',
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
define [
|
||||
'jquery'
|
||||
'compiled/gradebook/GradebookHelpers'
|
||||
'jsx/gradebook/shared/constants'
|
||||
], (GradebookHelpers, GradebookConstants) ->
|
||||
], ($, GradebookHelpers, GradebookConstants) ->
|
||||
QUnit.module "GradebookHelpers#noErrorsOnPage",
|
||||
setup: ->
|
||||
@mockFind = @mock($, "find")
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
define [
|
||||
'jquery'
|
||||
'compiled/gradezilla/GradebookHelpers'
|
||||
'jsx/gradezilla/shared/constants'
|
||||
], (GradebookHelpers, GradebookConstants) ->
|
||||
], ($, GradebookHelpers, GradebookConstants) ->
|
||||
QUnit.module "GradebookHelpers#noErrorsOnPage",
|
||||
setup: ->
|
||||
@mockFind = @mock($, "find")
|
||||
|
|
|
@ -1,10 +1,11 @@
|
|||
define [
|
||||
'jquery'
|
||||
'react'
|
||||
'react-dom'
|
||||
'react-addons-test-utils'
|
||||
'underscore'
|
||||
'jsx/dashboard_card/DashboardCardAction'
|
||||
], (React, ReactDOM, TestUtils, _, DashboardCardAction) ->
|
||||
], ($, React, ReactDOM, TestUtils, _, DashboardCardAction) ->
|
||||
|
||||
QUnit.module 'DashboardCardAction',
|
||||
setup: ->
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
define [
|
||||
'jquery'
|
||||
'react'
|
||||
'react-dom'
|
||||
'react-addons-test-utils'
|
||||
|
@ -6,7 +7,7 @@ define [
|
|||
'jsx/dashboard_card/DashboardCard'
|
||||
'jsx/dashboard_card/CourseActivitySummaryStore',
|
||||
'helpers/assertions'
|
||||
], (React, ReactDOM, TestUtils, _, DashboardCard, CourseActivitySummaryStore, assertions) ->
|
||||
], ($, React, ReactDOM, TestUtils, _, DashboardCard, CourseActivitySummaryStore, assertions) ->
|
||||
|
||||
QUnit.module 'DashboardCard',
|
||||
setup: ->
|
||||
|
|
|
@ -1,10 +1,11 @@
|
|||
define [
|
||||
'jquery'
|
||||
'react'
|
||||
'react-dom'
|
||||
'react-addons-test-utils'
|
||||
'underscore'
|
||||
'jsx/due_dates/DueDateAddRowButton'
|
||||
], (React, ReactDOM, {Simulate, SimulateNative}, _, DueDateAddRowButton) ->
|
||||
], ($, React, ReactDOM, {Simulate, SimulateNative}, _, DueDateAddRowButton) ->
|
||||
|
||||
QUnit.module 'DueDateAddRowButton with true display prop',
|
||||
setup: ->
|
||||
|
|
|
@ -1,11 +1,12 @@
|
|||
define [
|
||||
'jquery'
|
||||
'react'
|
||||
'react-dom'
|
||||
'react-addons-test-utils'
|
||||
'underscore'
|
||||
'jsx/due_dates/DueDateCalendars'
|
||||
'helpers/fakeENV'
|
||||
], (React, ReactDOM, {Simulate, SimulateNative}, _, DueDateCalendars, fakeENV) ->
|
||||
], ($, React, ReactDOM, {Simulate, SimulateNative}, _, DueDateCalendars, fakeENV) ->
|
||||
|
||||
QUnit.module 'DueDateCalendars',
|
||||
setup: ->
|
||||
|
|
|
@ -1,10 +1,11 @@
|
|||
define [
|
||||
'jquery'
|
||||
'react'
|
||||
'react-dom'
|
||||
'react-addons-test-utils'
|
||||
'underscore'
|
||||
'jsx/due_dates/DueDateRemoveRowLink'
|
||||
], (React, ReactDOM, {Simulate}, _, DueDateRemoveRowLink) ->
|
||||
], ($, React, ReactDOM, {Simulate}, _, DueDateRemoveRowLink) ->
|
||||
|
||||
QUnit.module 'DueDateRemoveRowLink',
|
||||
setup: ->
|
||||
|
|
|
@ -1,11 +1,12 @@
|
|||
define [
|
||||
'jquery'
|
||||
'react'
|
||||
'react-dom'
|
||||
'react-addons-test-utils'
|
||||
'underscore'
|
||||
'jsx/due_dates/DueDateRow'
|
||||
'helpers/fakeENV'
|
||||
], (React, ReactDOM, {Simulate, SimulateNative}, _, DueDateRow, fakeENV) ->
|
||||
], ($, React, ReactDOM, {Simulate, SimulateNative}, _, DueDateRow, fakeENV) ->
|
||||
|
||||
QUnit.module 'DueDateRow with empty props and canDelete true',
|
||||
setup: ->
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
define [
|
||||
'jquery'
|
||||
'react'
|
||||
'react-dom'
|
||||
'react-addons-test-utils'
|
||||
|
@ -8,7 +9,7 @@ define [
|
|||
'jsx/due_dates/StudentGroupStore'
|
||||
'compiled/models/AssignmentOverride'
|
||||
'helpers/fakeENV'
|
||||
], (React, ReactDOM, TestUtils, _, DueDates, OverrideStudentStore, StudentGroupStore, AssignmentOverride, fakeENV) ->
|
||||
], ($, React, ReactDOM, TestUtils, _, DueDates, OverrideStudentStore, StudentGroupStore, AssignmentOverride, fakeENV) ->
|
||||
|
||||
findAllByTag = TestUtils.scryRenderedDOMComponentsWithTag
|
||||
findAllByClass = TestUtils.scryRenderedDOMComponentsWithClass
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
define [
|
||||
'jquery'
|
||||
'react'
|
||||
'react-dom'
|
||||
'react-addons-test-utils'
|
||||
'jsx/external_apps/components/Lti2Iframe'
|
||||
], (React, ReactDOM, TestUtils, Lti2Iframe) ->
|
||||
], ($, React, ReactDOM, TestUtils, Lti2Iframe) ->
|
||||
|
||||
Simulate = TestUtils.Simulate
|
||||
wrapper = document.getElementById('fixtures')
|
||||
|
|
Loading…
Reference in New Issue