Added schema for unit tests

This commit is contained in:
Tristan B. Velloza Kildaire 2022-12-29 18:48:54 +02:00
parent 626660216b
commit 8b2ce3bce2
2 changed files with 42 additions and 0 deletions

View File

@ -93,6 +93,8 @@ To run tests you will want to enable the `pragma`s and `writeln`s. therefore pas
dub test -ddbg
```
Run pocketbase on the default port and then use the schema provided as `dummy.json` to test with (in a collection named `dummy`).
## License
See [LICENSE](LICENSE)

40
dummy.json Normal file
View File

@ -0,0 +1,40 @@
{
"id": "iir9gleipa4n6lf",
"name": "dummy",
"type": "base",
"system": false,
"schema": [
{
"id": "fkyktfrf",
"name": "name",
"type": "text",
"system": false,
"required": false,
"unique": false,
"options": {
"min": null,
"max": null,
"pattern": ""
}
},
{
"id": "31mcl2nq",
"name": "age",
"type": "number",
"system": false,
"required": false,
"unique": false,
"options": {
"min": null,
"max": null
}
}
],
"listRule": "",
"viewRule": "",
"createRule": "",
"updateRule": "",
"deleteRule": "",
"options": {}
}
}