-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmocks.js
More file actions
31 lines (31 loc) · 778 Bytes
/
mocks.js
File metadata and controls
31 lines (31 loc) · 778 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
module.exports = {
campaign: (data) => Object.assign({
uuid: '830a1280-6e17-11ea-858b-f7d7d2f43749',
name: 'Example Campaign',
}, data),
donation: (data) => Object.assign({
uuid: 'mock-donation-uuid',
user: { firstName: 'Alexandria', uuid: 'user-uuid' },
amount: 2050,
currency: 'AUD',
message: 'Good luck!',
}, data),
profile: (data) => Object.assign({
name: `Sam's profile`,
}, data),
subscription: (data) => Object.assign({
uuid: 'mock-subscription-uuid',
user: { firstName: 'Alexandria', uuid: 'user-uuid' },
amount: 2050,
currency: 'AUD',
message: 'Good luck!',
profile: {
name: `Sam's profile`,
}
}, data),
user: (data) => Object.assign({
fullName: 'Jason Test',
preferredName: 'Jase',
email: 'jase@mail.test',
}, data),
}