Merge pull request #9044 from edx/christina/verify-tests-running

Teams-related JS test cleanup
This commit is contained in:
Christina Roberts
2015-07-24 12:14:10 -04:00
6 changed files with 10 additions and 7 deletions

View File

@@ -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({

View File

@@ -239,7 +239,7 @@ define(['jquery',
}
expect(collection.getPage()).toBe(newPage);
}
)
);
});
});
});

View File

@@ -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,

View File

@@ -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,

View File

@@ -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'
});
});

View File

@@ -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();