Browse Source

Update test cases checking for 'category' in output

pull/1068/head
Adrien Matissart 7 years ago
parent
commit
265cded77d
  1. 6
      test/unit/helper/geojsonify_place_details.js

6
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';

Loading…
Cancel
Save