From 81dc4c226b0929c48bc658e24a2afb54d3eafcef Mon Sep 17 00:00:00 2001 From: Phoebe Lew Date: Mon, 20 Nov 2023 17:47:12 +1100 Subject: [PATCH] More detail in vector structure --- web5-test-vectors/vector-structure.json | 27 +++++++++++++++++++------ 1 file changed, 21 insertions(+), 6 deletions(-) diff --git a/web5-test-vectors/vector-structure.json b/web5-test-vectors/vector-structure.json index 82374fc..ca2d0f0 100644 --- a/web5-test-vectors/vector-structure.json +++ b/web5-test-vectors/vector-structure.json @@ -1,19 +1,34 @@ { "description": "Describe the feature under test", - "numberOfTests": 2, + "numberOfTests": 3, "vectors": [ { "testId": 1, "description": "describe this test case", - "input": {}, - "output": {}, + "input": "input string", + "output": { + "successful": "return object" + }, "result": "valid" }, { "testId": 2, - "description": "describe the next test case", - "input": {}, - "output": {}, + "description": "describe the next test case - error case with no response", + "input": { + "input": "can be an object" + }, + "output": null, + "result": "invalid" + }, + { + "testId": 3, + "description": "describe the last test case - error case with expected error structure", + "input": { + "input": "can be an object" + }, + "output": { + "error": "can specify an error reason" + }, "result": "invalid" } ]