diff --git a/controller/predicates/is_service_enabled.js b/controller/predicates/is_service_enabled.js deleted file mode 100644 index 2e9a034f..00000000 --- a/controller/predicates/is_service_enabled.js +++ /dev/null @@ -1,5 +0,0 @@ -module.exports = (uri) => { - return (request, response) => { - return uri !== undefined; - }; -}; diff --git a/test/unit/controller/predicates/is_service_enabled.js b/test/unit/controller/predicates/is_service_enabled.js deleted file mode 100644 index f7f99748..00000000 --- a/test/unit/controller/predicates/is_service_enabled.js +++ /dev/null @@ -1,42 +0,0 @@ -'use strict'; - -const _ = require('lodash'); -const is_service_enabled = require('../../../../controller/predicates/is_service_enabled'); - -module.exports.tests = {}; - -module.exports.tests.interface = (test, common) => { - test('valid interface', (t) => { - t.equal(typeof is_service_enabled, 'function', 'is_service_enabled is a function'); - t.equal(typeof is_service_enabled(), 'function', 'is_service_enabled() is a function'); - t.end(); - }); -}; - -module.exports.tests.true_conditions = (test, common) => { - test('string uri should return true', (t) => { - t.ok(is_service_enabled('pip uri')()); - t.end(); - - }); - -}; - -module.exports.tests.false_conditions = (test, common) => { - test('undefined uri should return false', (t) => { - t.notOk(is_service_enabled()()); - t.end(); - - }); - -}; - -module.exports.all = (tape, common) => { - function test(name, testFunction) { - return tape(`GET /is_service_enabled ${name}`, testFunction); - } - - for( const testCase in module.exports.tests ){ - module.exports.tests[testCase](test, common); - } -}; diff --git a/test/unit/run.js b/test/unit/run.js index 47425ee4..8299672d 100644 --- a/test/unit/run.js +++ b/test/unit/run.js @@ -29,7 +29,6 @@ var tests = [ require('./controller/predicates/is_coarse_reverse'), require('./controller/predicates/is_only_non_admin_layers'), require('./controller/predicates/is_request_sources_only_whosonfirst'), - require('./controller/predicates/is_service_enabled'), require('./helper/debug'), require('./helper/diffPlaces'), require('./helper/geojsonify'),