UNPKG

@allurereport/web-allure2

Version:

The static files for Allure Classic Report

13 lines (10 loc) 365 B
import { reportDataUrl } from "@allurereport/web-commons"; import { Collection } from "backbone"; export default class GraphCollection extends Collection { url = function () { return "widgets/status-chart.json"; }; fetch(options) { return reportDataUrl(this.url(), "application/json").then((value) => super.fetch({ ...options, url: value })); } }