potential fix for tests crashing

use underscore noop instead of jquery
This commit is contained in:
Phil Hughes 2018-01-30 09:10:58 +00:00
parent 3058334b99
commit b367cc0ca2
No known key found for this signature in database
GPG Key ID: 32245528C52E0F9F
1 changed files with 3 additions and 2 deletions

View File

@ -1,8 +1,9 @@
import _ from 'underscore';
import axios from './lib/utils/axios_utils';
const Api = {
groupsPath: '/api/:version/groups.json',
groupPath: '/api/:version/groups/:id.json',
groupPath: '/api/:version/groups/:id',
namespacesPath: '/api/:version/namespaces.json',
groupProjectsPath: '/api/:version/groups/:id/projects.json',
projectsPath: '/api/:version/projects.json',
@ -59,7 +60,7 @@ const Api = {
},
// Return projects list. Filtered by query
projects(query, options, callback = $.noop) {
projects(query, options, callback = _.noop) {
const url = Api.buildUrl(Api.projectsPath);
const defaults = {
search: query,