summaryrefslogtreecommitdiffstats
path: root/frontend/__tests__/mockMang.js
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/__tests__/mockMang.js')
-rw-r--r--frontend/__tests__/mockMang.js13
1 files changed, 12 insertions, 1 deletions
diff --git a/frontend/__tests__/mockMang.js b/frontend/__tests__/mockMang.js
index 15fc42c..375973c 100644
--- a/frontend/__tests__/mockMang.js
+++ b/frontend/__tests__/mockMang.js
@@ -37,6 +37,17 @@ const mocks = {
}),
};
+const fakeItem = () => ({
+ __typename: 'Item',
+ id: '123',
+ price: 5000,
+ user: null,
+ image: 'dog-small.jpg',
+ title: 'dogs are best',
+ description: 'dogs',
+ largeImage: 'dog.jpg',
+});
+
const resolvers = {
// Query: {
// cartOpen: () => true,
@@ -70,4 +81,4 @@ const mountWithApollo = Component => {
export default mountOptions;
-export { mocked, mountWithApollo };
+export { mocked, mountWithApollo, fakeItem };