Permalink
Browse files

Create fetchHotelPhotos function

  • Loading branch information...
smolak committed Dec 29, 2017
1 parent 139bf93 commit 72e5020720746c7fe8edbb688052694c113bf21e
Showing with 16 additions and 0 deletions.
  1. +3 −0 src/fetchHotelPhotos.js
  2. +13 −0 test/unit/src/fetchHotelPhotosSpec.js
View
@@ -0,0 +1,3 @@
export default function fetchHotelPhotos() {
return [ 'photo-1.jpg', 'photo-2.jpg', 'photo-3.jpg' ];
}
@@ -0,0 +1,13 @@
import { expect } from 'chai';
import fetchHotelPhotos from '../../../src/fetchHotelPhotos';
describe('fetchHotelPhotos', () => {
it('should return hotel photos collection', () => {
const photosCollection = fetchHotelPhotos();
expect(photosCollection).to.deep.equal([
'photo-1.jpg', 'photo-2.jpg', 'photo-3.jpg'
]);
});
});

0 comments on commit 72e5020

Please sign in to comment.