Skip to content

Commit 35b133c

Browse files
committed
chore: tidy up prompts
1 parent f981520 commit 35b133c

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

products.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,6 @@ paths:
2727
# name: "pizza"
2828
# version: "1.0.0"
2929
# see https://github.com/apiaryio/dredd/issues/1430 for why
30-
"400":
31-
description: Invalid ID supplied
32-
content: {}
3330
/product/{id}:
3431
get:
3532
summary: Find product by ID

src/test.instructions.txt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,5 @@
66
* Use the native Jest expect (https://jestjs.io/docs/expect) matchers such as `toEqual` and `toBeTruthy`
77
* Prefer the use of the async/await pattern when using Promises
88
* Use the PactV4 interface
9-
* Use a 3 level hierarchy for tests
10-
1. Level 1 should be the API under test as a `describe` block e.g. "🧱 Product API"
11-
2. Level 2 should be the endpoint as a `describe` block e.g. "🔌 GET /products/:id", "POST /products"
12-
3. Level 3 should be the scenario as a `test` block e.g. "🧪 Given a valid user, returns a 200", "Given an invalid user, returns a 400"
9+
* Omit the comments in the template given, as these are designed to help you understand the template's structure and intent
10+
* Remember, test all scenarios - 200, 400, 401 and 404

0 commit comments

Comments
 (0)