spec: delete unused ajax_mocks

Change-Id: I988543d35be1d556cedbd8abae8e3f5b8ff7c6ad
Reviewed-on: https://gerrit.instructure.com/154287
Reviewed-by: Jeremy Neander <jneander@instructure.com>
Tested-by: Jenkins
Product-Review: Derek Bender <djbender@instructure.com>
QA-Review: Derek Bender <djbender@instructure.com>
This commit is contained in:
Derek Bender 2018-06-19 07:41:48 -05:00
parent 06574957fc
commit 0434bcab47
3 changed files with 0 additions and 153 deletions

View File

@ -1,58 +0,0 @@
/*
* Copyright (C) 2011 - 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 $ from 'support/jquery.mockjax'
export default $.mockjax({
url: /\/api\/v1\/courses\/\d+(\?.+)?$/,
responseText: [
{
name: "teacher's test course",
id: 1,
enrollments: [{type: 'teacher'}],
course_code: 'RY 101',
sis_course_id: null,
calendar: {
ics:
'http://example.com/feeds/calendars/course_e3b41bfc0e6665062b8d442e0b7096f49d1f3859.ics'
}
},
{
name: 'My Course',
id: 8,
enrollments: [{type: 'ta'}],
course_code: 'Course-101',
sis_course_id: null,
calendar: {
ics:
'http://example.com/feeds/calendars/course_KdkLMSWISSmVHhX5T5hxjNE1lUDLF0zXfojIUISE.ics'
}
},
{
name: 'corse i am a student in',
id: 9,
enrollments: [{type: 'student'}],
course_code: 'criasi',
sis_course_id: null,
calendar: {
ics:
'http://example.com/feeds/calendars/course_PVeprcyWyJnk4evwazeGrDGBcTdTFCm2WZVRTlyE.ics'
}
}
]
})

View File

@ -1,58 +0,0 @@
/*
* Copyright (C) 2012 - 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 $ from 'support/jquery.mockjax'
export default $.mockjax({
url: /\/api\/v1\/courses\/\d+\/enrollments(\?.+)?$/,
headers: {Link: 'rel="next"'},
responseText: [
{
course_id: 1,
course_section_id: 1,
enrollment_state: 'active',
limit_privileges_to_course_section: true,
root_account_id: 1,
type: 'StudentEnrollment',
user_id: 1,
user: {
id: 1,
login_id: 'bieberfever@example.com',
name: 'Justin Bieber',
short_name: 'Justin B.',
sortable_name: 'Bieber, Justin'
}
},
{
course_id: 1,
course_section_id: 2,
enrollment_state: 'active',
limit_privileges_to_course_section: false,
root_account_id: 1,
type: 'TeacherEnrollment',
user_id: 2,
user: {
id: 2,
login_id: 'changyourmind@example.com',
name: 'Señor Chang',
short_name: 'S. Chang',
sortable_name: 'Chang, Señor'
}
}
]
})

View File

@ -1,37 +0,0 @@
/*
* Copyright (C) 2011 - 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 $ from 'support/jquery.mockjax'
export default $.mockjax({
url: '/help_links*',
responseText: [
{
text: '<a href="haxored">asdf</a>asdf',
subtext: 'testing subtext',
url: "javascript:alert('hi');",
available_to: ['user', 'student', 'teacher', 'admin']
},
{
subtext: 'Have an idea to improve Canvas?',
url: 'http://help.instructure.com/forums/337215-feature-requests',
text: 'Request a Feature',
available_to: ['user', 'student', 'teacher', 'admin']
}
]
})