From c53584ed35058d35de27c9deeabe61f437942859 Mon Sep 17 00:00:00 2001 From: Michele Sessa Date: Mon, 19 Dec 2022 13:47:00 +0000 Subject: [PATCH] docs(gatecrashers): remove non neutral content --- js/tests/gatecrashers_test.mjs | 8 ++++---- subjects/gatecrashers/README.md | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/js/tests/gatecrashers_test.mjs b/js/tests/gatecrashers_test.mjs index f8315d94a..c788ac88c 100644 --- a/js/tests/gatecrashers_test.mjs +++ b/js/tests/gatecrashers_test.mjs @@ -77,8 +77,8 @@ const isServerRunningWell = async ({ path, ctx }) => { const testGoodRequests = async ({ path, eq, fail, ctx }) => { const expectedBody = { answer: 'yes', - drink: 'alcohol', - food: 'bats', + drink: 'juice', + food: 'pizza', } const dirName = 'guests' const dirPath = join(ctx.tmpPath, dirName) @@ -110,8 +110,8 @@ const testGoodRequests = async ({ path, eq, fail, ctx }) => { const testUnauthorizedRequests = async ({ path, eq, ctx }) => { const body = { answer: 'yes', - drink: 'alcohol', - food: 'bats', + drink: 'juice', + food: 'pizza', } const { server } = await ctx.startServer(path) diff --git a/subjects/gatecrashers/README.md b/subjects/gatecrashers/README.md index 486451d82..6c697afac 100644 --- a/subjects/gatecrashers/README.md +++ b/subjects/gatecrashers/README.md @@ -23,7 +23,7 @@ To test your program, you should be able to expect the following behavior once y Unauthorized attempt: ```shell -curl -i -X POST localhost:5000/Ricky_Banni -H "Content-Type: application/json" -d '{"answer": "yes", "drink": "alcohol", "food": "bats"}' +curl -i -X POST localhost:5000/Ricky_Banni -H "Content-Type: application/json" -d '{"answer": "yes", "drink": "juice", "food": "pizza"}' HTTP/1.1 401 Unauthorized Content-Type: application/json Date: [date] @@ -37,7 +37,7 @@ Authorization Required% Authorized attempt: ```shell -curl -i -u Rahima_Young:abracadabra -X POST localhost:5000/Ricky_Banni -H "Content-Type: application/json" -d '{"answer": "yes", "drink": "alcohol", "food": "bats"}' +curl -i -u Rahima_Young:abracadabra -X POST localhost:5000/Ricky_Banni -H "Content-Type: application/json" -d '{"answer": "yes", "drink": "juice", "food": "pizza"}' HTTP/1.1 200 OK Content-Type: application/json Date: [date] @@ -47,8 +47,8 @@ Transfer-Encoding: chunked { "answer": "yes", - "drink": "alcohol", - "food": "bats" + "drink": "juice", + "food": "pizza" } ```