diff --git a/server/fakeSDK.js b/server/fakeSDK.js deleted file mode 100644 index 86effa36..00000000 --- a/server/fakeSDK.js +++ /dev/null @@ -1,35 +0,0 @@ -/* eslint-disable import/prefer-default-export, no-unused-vars */ -const fakeListings = [ - { - id: 123, - title: 'Banyan Studios', - price: '55\u20AC / day', - description: 'Organic Music Production in a Sustainable, Ethical and Professional Studio.', - location: 'New York, NY \u2022 40mi away', - review: { count: '8 reviews', rating: '4' }, - author: { - name: 'The Stardust Collective', - avatar: 'http://placehold.it/44x44', - review: { rating: '4' }, - }, - }, - { - id: 1234, - title: 'Pienix Studio', - price: '80\u20AC / day', - description: 'Pienix Studio specializes in music mixing and mastering production.', - location: 'New York, NY \u2022 6mi away', - review: { count: '7 reviews', rating: '4' }, - author: { name: 'Juhan', avatar: 'http://placehold.it/44x44', review: { rating: '4' } }, - }, -]; -/* eslint-enable import/prefer-default-export */ - -exports.fetchListings = () => { - const randomTime = Math.random() * 2000; - const fakeResponseTime = 1000 + randomTime; - - return new Promise((resolve, reject) => { - setTimeout(() => resolve(fakeListings), fakeResponseTime); - }); -}; diff --git a/src/util/fakeSDK.js b/src/util/fakeSDK.js deleted file mode 100644 index c298a311..00000000 --- a/src/util/fakeSDK.js +++ /dev/null @@ -1,39 +0,0 @@ -/* eslint-disable import/prefer-default-export, no-unused-vars */ -export const fakeListings = [ - { - id: 123, - title: 'Banyan Studios', - price: '55\u20AC / day', - description: 'Organic Music Production in a Sustainable, Ethical and Professional Studio.', - location: 'New York, NY \u2022 40mi away', - review: { count: '8 reviews', rating: '4' }, - author: { - name: 'The Stardust Collective', - avatar: 'http://placehold.it/44x44', - review: { rating: '4' }, - }, - }, - { - id: 1234, - title: 'Pienix Studio', - price: '80\u20AC / day', - description: 'Pienix Studio specializes in music mixing and mastering production.', - location: 'New York, NY \u2022 6mi away', - review: { count: '7 reviews', rating: '4' }, - author: { name: 'Juhan', avatar: 'http://placehold.it/44x44', review: { rating: '4' } }, - }, -]; -/* eslint-enable import/prefer-default-export */ - -const fakeSDK = { - fetchListings: () => { - const randomTime = Math.random() * 2000; - const fakeResponseTime = 1000 + randomTime; - - return new Promise((resolve, reject) => { - setTimeout(() => resolve(fakeListings), fakeResponseTime); - }); - }, -}; - -export default fakeSDK;