From 8b2ce3bce247a8aa5477406c69adf22983026650 Mon Sep 17 00:00:00 2001 From: "Tristan B. Velloza Kildaire" Date: Thu, 29 Dec 2022 18:48:54 +0200 Subject: [PATCH] Added schema for unit tests --- README.md | 2 ++ dummy.json | 40 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 42 insertions(+) create mode 100644 dummy.json diff --git a/README.md b/README.md index 999554f..470649b 100644 --- a/README.md +++ b/README.md @@ -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) diff --git a/dummy.json b/dummy.json new file mode 100644 index 0000000..6c93205 --- /dev/null +++ b/dummy.json @@ -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": {} + } +}