From 77275da1abde2f8edb0798cfe862cb75ecfb93d1 Mon Sep 17 00:00:00 2001 From: anuveyatsu Date: Mon, 15 Jun 2020 11:50:47 +0600 Subject: [PATCH] [mocks][xs]: add reosurce urls and add 'package_show' mock for 'population' dataset. --- mocks/index.js | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/mocks/index.js b/mocks/index.js index f82e43ee..1fcddbdf 100644 --- a/mocks/index.js +++ b/mocks/index.js @@ -10,7 +10,9 @@ const gdp = { "title": "GDP data", "format": "csv", "created": "2019-03-07T12:00:36.273495", - "last_modified": "2020-05-07T12:00:36.273495" + "last_modified": "2020-05-07T12:00:36.273495", + "datastore_active": false, + "url": "https://raw.githubusercontent.com/datasets/gdp/master/data/gdp.csv" } ], "organization": { @@ -34,7 +36,9 @@ const population = { "title": "Population data", "format": "csv", "created": "2019-03-07T12:00:36.273495", - "last_modified": "2020-05-07T12:00:36.273495" + "last_modified": "2020-05-07T12:00:36.273495", + "datastore_active": true, + "url": "https://raw.githubusercontent.com/datasets/gdp/master/data/gdp.csv" } ], "organization": { @@ -92,6 +96,9 @@ module.exports.initMocks = function() { "success": true, "result": gdp }) - - // "organization_show" mocks + .get('/package_show?id=population') + .reply(200, { + "success": true, + "result": population + }) }