-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: Add checklist and basic test coverage to existing Zoo schema
- Loading branch information
1 parent
cb4de6f
commit f31ba60
Showing
3 changed files
with
24 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -64,6 +64,20 @@ export const Zoo: Schema = { | |
], | ||
}, | ||
}, | ||
// Checklist | ||
{ | ||
type: "checklist", | ||
data: { | ||
title: "What do they eat?", | ||
fn: "food", | ||
options: [ | ||
{ id: "meat", data: { text: "Meat" } }, | ||
{ id: "leaves", data: { text: "Leaves" } }, | ||
{ id: "bamboo", data: { text: "Bamboo" } }, | ||
{ id: "fruit", data: { text: "fruit" } }, | ||
], | ||
}, | ||
}, | ||
], | ||
min: 1, | ||
max: 10, | ||
|
@@ -86,13 +100,15 @@ export const mockZooPayload = { | |
"email.address": "[email protected]", | ||
name: "Richard Parker", | ||
size: "Medium", | ||
food: ["meat", "leaves", "bamboo"], | ||
}, | ||
{ | ||
age: 10, | ||
"cuteness.amount": "Very", | ||
"email.address": "[email protected]", | ||
name: "Richard Parker", | ||
size: "Medium", | ||
food: ["meat", "leaves", "bamboo"], | ||
}, | ||
], | ||
"mockFn.one.age": 10, | ||
|