+++ /dev/null
-define ['third-party/jquery.mockjax'], ->
-
- jQuery.mockjaxSettings.contentType = 'text/json'
- jQuery.mockjaxSettings.responseTime = 250
-
-
- jQuery.mockjax
- url: "#{baseUrl}/api/analysis_reports/history"
- responseText: JSON.stringify
- paging:
- pageIndex: 1
- pageSize: 3
- total: 3
- pages: 1
- reports: [
- {
- id: 1
- project: "org.codehaus.sonar:sonar"
- projectName: "SonarQube"
- startDate: "2014-10-09T11:11:11+02:00"
- endDate: "2014-10-09T11:11:16+02:00"
- duration: "1:30"
- status: "DONE"
- }
- {
- id: 2
- project: "org.codehaus.sonar-plugins.visualstudio:sonar-visual-studio-plugin"
- projectName: "Analysis Bootstrapper for Visual Studio Projects"
- startDate: "2014-10-09T11:13:11+02:00"
- endDate: "2014-10-09T11:12:47+02:00"
- duration: "1:30"
- status: "DONE"
- }
- {
- id: 3
- project: "org.codehaus.sonar:sonar"
- projectName: "SonarQube"
- startDate: "2014-10-09T11:14:11+02:00"
- endDate: "2014-10-09T11:17:00+02:00"
- duration: "1:30"
- status: "FAILED"
- }
- ]