From 37a0ceb4e7b122ef80b193f2eca2dbf73313189d Mon Sep 17 00:00:00 2001 From: Joffrey JAFFEUX Date: Thu, 26 Apr 2018 17:39:00 +0200 Subject: [PATCH] Adds fixture for new contributors --- .../fixtures/new-contributors.js.es6 | 48 +++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 test/javascripts/fixtures/new-contributors.js.es6 diff --git a/test/javascripts/fixtures/new-contributors.js.es6 b/test/javascripts/fixtures/new-contributors.js.es6 new file mode 100644 index 0000000000..2d23b14380 --- /dev/null +++ b/test/javascripts/fixtures/new-contributors.js.es6 @@ -0,0 +1,48 @@ +export default { + "/admin/reports/new_contributors": { + "report": { + "type": "new_contributors", + "title": "New Contributors", + "xaxis": "", + "yaxis": "", + "data": [{ + "x": "2018-04-11", + "y": 10 + }, { + "x": "2018-04-12", + "y": 10 + }, { + "x": "2018-04-13", + "y": 60 + }, { + "x": "2018-04-14", + "y": 60 + }, { + "x": "2018-04-15", + "y": 10 + }, { + "x": "2018-04-16", + "y": 10 + }, { + "x": "2018-04-17", + "y": 10 + }, { + "x": "2018-04-19", + "y": 10 + }, { + "x": "2018-04-18", + "y": 10 + }, { + "x": "2018-04-20", + "y": 1 + }], + "total": 121, + "start_date": "2018-03-26T00:00:00.000Z", + "end_date": "2018-04-25T23:59:59.999Z", + "category_id": null, + "group_id": null, + "prev30Days": null, + "labels": null + } + } +};