Skip to content

A platform for community discussion. Free, open, simple.

Adds fixture for new contributors

Joffrey JAFFEUX37a0ceb4e7b1
diff --git a/test/javascripts/fixtures/new-contributors.js.es6 b/test/javascripts/fixtures/new-contributors.js.es6
new file mode 100644
index 00000000000..2d23b143803
--- /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
+ }
+ }
+};