diff --git a/src/index.js b/src/index.js index b07870a..20322a5 100644 --- a/src/index.js +++ b/src/index.js @@ -37,8 +37,8 @@ const normalize = (ripple, next = identity) => (name, type, value) => { if (!req.name) return next(values(ripple.resources).map(normalize(ripple))) - if (!resource) - return Promise.resolve([404, err(`cannot find ${req.name}`)]) + // if (!resource) + // return Promise.resolve([404, err(`cannot find ${req.name}`)]) if (!req.type) req = { diff --git a/test.js b/test.js index d10036e..31702b5 100644 --- a/test.js +++ b/test.js @@ -333,21 +333,21 @@ describe('Sync', function(){ ) }) - it('should not send if invalid name', function(done){ - sendrecv( - done - , [{ name: 'invalid' }] - , [404, 'cannot find invalid'] - ) - }) - - it('should not send if invalid name (shorthand)', function(done){ - sendrecv( - done - , ['invalid'] - , [404, 'cannot find invalid'] - ) - }) + // it('should not send if invalid name', function(done){ + // sendrecv( + // done + // , [{ name: 'invalid' }] + // , [404, 'cannot find invalid'] + // ) + // }) + + // it('should not send if invalid name (shorthand)', function(done){ + // sendrecv( + // done + // , ['invalid'] + // , [404, 'cannot find invalid'] + // ) + // }) it('should respond with 405 if type/verb not handled', function(done){ sendrecv(