Permalink
Browse files

Rename to createHotelPhotosRouteHandler

This will be a route handler and previous logic will be brought back here soon.
  • Loading branch information...
smolak committed Dec 29, 2017
1 parent 03985f1 commit b6963ef9f599c3ad084cd0a71532a6f6c3769c26
@@ -0,0 +1,3 @@
export default function createHotelPhotosRouteHandler(dbClient, collectionName) {
return () => {};
}
View

This file was deleted.

Oops, something went wrong.
@@ -0,0 +1,17 @@
import { expect } from 'chai';
import sinon from 'sinon';
import createHotelPhotosRouteHandler from '../../../src/createHotelPhotosRouteHandler';
describe('createHotelPhotosRouteHandler', () => {
const connectedClientDouble = {
collection: sinon.spy()
};
const collectionName = 'hotels';
it('should return a function', () => {
const routeHandler = createHotelPhotosRouteHandler(connectedClientDouble, collectionName);
expect(routeHandler).to.be.a('function'); // (1)
});
});

This file was deleted.

Oops, something went wrong.

0 comments on commit b6963ef

Please sign in to comment.