summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/rest_api.js
blob: 61fe89f4f7e4157016842760129f6c2d513e2c86 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
export * from './api/groups_api';
export * from './api/projects_api';
export * from './api/user_api';
export * from './api/markdown_api';

// Note: It's not possible to spy on methods imported from this file in
// Jest tests.
// As a workaround, in Jest tests, import the methods from the file
// in which they are defined:
//
// import * as UserApi from '~/api/user_api';
// vs...
// import * as UserApi from '~/rest_api';
//
// // This will only work with option #2 above.
// jest.spyOn(UserApi, 'getUsers')