Browse Source

fixed test

pull/912/head
Stephen Hess 7 years ago
parent
commit
321ba0d458
  1. 10
      test/unit/controller/predicates/is_request_sources_only_whosonfirst.js

10
test/unit/controller/predicates/is_request_sources_only_whosonfirst.js

@ -31,15 +31,7 @@ module.exports.tests.true_conditions = (test, common) => {
module.exports.tests.false_conditions = (test, common) => {
test('undefined req should return false', (t) => {
const req = {
clean: {
sources: [
'not whosonfirst'
]
}
};
t.notOk(is_request_sources_only_whosonfirst(req));
t.notOk(is_request_sources_only_whosonfirst(undefined));
t.end();
});

Loading…
Cancel
Save