Merge pull request #9044 from edx/christina/verify-tests-running
Teams-related JS test cleanup
This commit is contained in:
@@ -1,10 +1,11 @@
|
||||
define([
|
||||
'jquery',
|
||||
'backbone',
|
||||
'underscore',
|
||||
'common/js/spec_helpers/ajax_helpers',
|
||||
'common/js/components/views/paginated_view',
|
||||
'common/js/components/collections/paging_collection'
|
||||
], function (Backbone, _, AjaxHelpers, PaginatedView, PagingCollection) {
|
||||
], function ($, Backbone, _, AjaxHelpers, PaginatedView, PagingCollection) {
|
||||
'use strict';
|
||||
describe('PaginatedView', function () {
|
||||
var TestItemView = Backbone.View.extend({
|
||||
|
||||
@@ -239,7 +239,7 @@ define(['jquery',
|
||||
}
|
||||
expect(collection.getPage()).toBe(newPage);
|
||||
}
|
||||
)
|
||||
);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
define([
|
||||
'jquery',
|
||||
'URI',
|
||||
'underscore',
|
||||
'common/js/spec_helpers/ajax_helpers',
|
||||
'common/js/components/views/paging_footer',
|
||||
'common/js/components/collections/paging_collection'
|
||||
], function (URI, _, AjaxHelpers, PagingFooter, PagingCollection) {
|
||||
], function ($, URI, _, AjaxHelpers, PagingFooter, PagingCollection) {
|
||||
'use strict';
|
||||
describe("PagingFooter", function () {
|
||||
var pagingFooter,
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
define([
|
||||
'underscore',
|
||||
'common/js/components/views/paging_header',
|
||||
'common/js/components/collections/paging_collection'
|
||||
], function (PagingHeader, PagingCollection) {
|
||||
], function (_, PagingHeader, PagingCollection) {
|
||||
'use strict';
|
||||
describe('PagingHeader', function () {
|
||||
var pagingHeader,
|
||||
|
||||
@@ -11,7 +11,7 @@ define(["jquery", "backbone", "teams/js/teams_tab_factory"],
|
||||
topics: {results: []},
|
||||
topics_url: '',
|
||||
teams_url: '',
|
||||
maxTeamSize: 9999
|
||||
maxTeamSize: 9999,
|
||||
course_id: 'edX/DemoX/Demo_Course'
|
||||
});
|
||||
});
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
;(function (define) {
|
||||
'use strict';
|
||||
|
||||
define(['jquery', 'teams/js/views/teams_tab'],
|
||||
function ($, TeamsTabView) {
|
||||
define(['jquery', 'underscore', 'backbone', 'teams/js/views/teams_tab'],
|
||||
function ($, _, Backbone, TeamsTabView) {
|
||||
return function (options) {
|
||||
var teamsTab = new TeamsTabView(_.extend(options, {el: $('.teams-content')}));
|
||||
teamsTab.render();
|
||||
|
||||
Reference in New Issue
Block a user