summaryrefslogtreecommitdiff
path: root/src/mocks
diff options
context:
space:
mode:
authorMichael Hunteman <michael@huntm.net>2024-03-09 15:13:45 -0800
committerMichael Hunteman <michael@huntm.net>2024-03-09 15:13:45 -0800
commit5e5560b558ff818546c94135bebf334be770c920 (patch)
tree23098a45caa1c9153a3387721151d1901aebf390 /src/mocks
parenta9333dc90f56ae4e19fabff4822ac1ffba7c6205 (diff)
Add carousel
Diffstat (limited to 'src/mocks')
-rw-r--r--src/mocks/handlers.ts44
1 files changed, 20 insertions, 24 deletions
diff --git a/src/mocks/handlers.ts b/src/mocks/handlers.ts
index 6bd17fa..e3569df 100644
--- a/src/mocks/handlers.ts
+++ b/src/mocks/handlers.ts
@@ -5,32 +5,28 @@ const token = nanoid();
export const handlers = [
http.post('/guest-login', () => {
- return HttpResponse.json(
- {
- guest: {
- id: 1,
- firstName: 'Michael',
- lastName: 'Hunteman',
- attendance: 'false',
- meal: '',
- email: '',
- message: ''
- },
- token,
- }
- )
- }),
- http.patch('/guests/1', () => {
- return HttpResponse.json(
- {
+ return HttpResponse.json({
+ guest: {
id: 1,
firstName: 'Michael',
lastName: 'Hunteman',
- attendance: 'true',
- meal: 'beef',
+ attendance: 'false',
+ meal: '',
email: '',
- message: ''
- }
- )
- })
+ message: '',
+ },
+ token,
+ });
+ }),
+ http.patch('/guests/1', () => {
+ return HttpResponse.json({
+ id: 1,
+ firstName: 'Michael',
+ lastName: 'Hunteman',
+ attendance: 'true',
+ meal: 'beef',
+ email: '',
+ message: '',
+ });
+ }),
];