Bug: Use v2 reports instead of v1 reports (#843)
This commit is contained in:
parent
0d7c1e5e11
commit
70341df9b8
3 changed files with 19 additions and 3 deletions
16
app/javascript/dashboard/api/specs/reports.spec.js
Normal file
16
app/javascript/dashboard/api/specs/reports.spec.js
Normal file
|
@ -0,0 +1,16 @@
|
|||
import reports from '../reports';
|
||||
import ApiClient from '../ApiClient';
|
||||
|
||||
describe('#Reports API', () => {
|
||||
it('creates correct instance', () => {
|
||||
expect(reports).toBeInstanceOf(ApiClient);
|
||||
expect(reports.apiVersion).toBe('/api/v2');
|
||||
expect(reports).toHaveProperty('get');
|
||||
expect(reports).toHaveProperty('show');
|
||||
expect(reports).toHaveProperty('create');
|
||||
expect(reports).toHaveProperty('update');
|
||||
expect(reports).toHaveProperty('delete');
|
||||
expect(reports).toHaveProperty('getAccountReports');
|
||||
expect(reports).toHaveProperty('getAccountSummary');
|
||||
});
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue