diff options
| author | Wes Bos <wesbos@gmail.com> | 2018-04-19 10:09:51 -0400 |
|---|---|---|
| committer | Wes Bos <wesbos@gmail.com> | 2018-04-19 10:09:51 -0400 |
| commit | 88ef4bd2df970cb6ea89123ffdd7fcb21dbc0f15 (patch) | |
| tree | 619a1f46b719e1f6a0c64e9641ed094dcddfebff /frontend/__tests__/mockMang.js | |
| parent | 54dd0e29830f04c9055863fb0449ee4fc2ab0689 (diff) | |
xxxxxx
Diffstat (limited to 'frontend/__tests__/mockMang.js')
| -rw-r--r-- | frontend/__tests__/mockMang.js | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/frontend/__tests__/mockMang.js b/frontend/__tests__/mockMang.js index 5a98c6a..7d65cd7 100644 --- a/frontend/__tests__/mockMang.js +++ b/frontend/__tests__/mockMang.js @@ -4,7 +4,7 @@ import casual from 'casual'; import PropTypes from 'prop-types'; // seed it so we get consistent results -casual.seed(123); +casual.seed(777); const typeDefs = importSchema('../backend/src/schema.graphql'); @@ -13,10 +13,21 @@ const typeDefs = importSchema('../backend/src/schema.graphql'); const mocks = { ID: () => casual.uuid, + DateTime: () => new Date(1400000000000), + Int: () => casual.integer(400, 5500), + OrderItem: () => ({ + quantity: casual.integer(1, 10), + image: 'dog.jpg', + title: casual.title, + description: casual.description, + price: () => 50000, + }), Item: () => ({ title: casual.title, description: casual.description, price: () => 50000, + image: 'dog.jpg', + largeImage: 'large-dog.jpg', }), User: () => ({ email: casual.email, |
