From 265cded77d91fc5558a1663dbf9cdd169926d85c Mon Sep 17 00:00:00 2001 From: Adrien Matissart Date: Wed, 29 Nov 2017 11:43:07 +0100 Subject: [PATCH] Update test cases checking for 'category' in output --- test/unit/helper/geojsonify_place_details.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/unit/helper/geojsonify_place_details.js b/test/unit/helper/geojsonify_place_details.js index c7f2c8ac..8b7ba943 100644 --- a/test/unit/helper/geojsonify_place_details.js +++ b/test/unit/helper/geojsonify_place_details.js @@ -498,11 +498,12 @@ module.exports.tests.geojsonify_place_details = (test, common) => { }); - test('category property should not be output when params does not contain \'category\' property', t => { + test('category property should be output even when params does not contain \'category\' property', t => { const source = { category: [ 1, 2 ] }; const expected = { + category: [ 1, 2 ] }; const clean = {}; @@ -514,11 +515,12 @@ module.exports.tests.geojsonify_place_details = (test, common) => { }); - test('category property should not be output when params is not an object', t => { + test('category property should be output when params is not an object', t => { const source = { category: [ 1, 2 ] }; const expected = { + category: [ 1, 2 ] }; const clean = 'this is not an object';