Browse Source

docs(gatecrashers): remove non neutral content

pull/1671/head
Michele Sessa 2 years ago committed by Michele
parent
commit
c53584ed35
  1. 8
      js/tests/gatecrashers_test.mjs
  2. 8
      subjects/gatecrashers/README.md

8
js/tests/gatecrashers_test.mjs

@ -77,8 +77,8 @@ const isServerRunningWell = async ({ path, ctx }) => {
const testGoodRequests = async ({ path, eq, fail, ctx }) => { const testGoodRequests = async ({ path, eq, fail, ctx }) => {
const expectedBody = { const expectedBody = {
answer: 'yes', answer: 'yes',
drink: 'alcohol', drink: 'juice',
food: 'bats', food: 'pizza',
} }
const dirName = 'guests' const dirName = 'guests'
const dirPath = join(ctx.tmpPath, dirName) const dirPath = join(ctx.tmpPath, dirName)
@ -110,8 +110,8 @@ const testGoodRequests = async ({ path, eq, fail, ctx }) => {
const testUnauthorizedRequests = async ({ path, eq, ctx }) => { const testUnauthorizedRequests = async ({ path, eq, ctx }) => {
const body = { const body = {
answer: 'yes', answer: 'yes',
drink: 'alcohol', drink: 'juice',
food: 'bats', food: 'pizza',
} }
const { server } = await ctx.startServer(path) const { server } = await ctx.startServer(path)

8
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: Unauthorized attempt:
```shell ```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 HTTP/1.1 401 Unauthorized
Content-Type: application/json Content-Type: application/json
Date: [date] Date: [date]
@ -37,7 +37,7 @@ Authorization Required%
Authorized attempt: Authorized attempt:
```shell ```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 HTTP/1.1 200 OK
Content-Type: application/json Content-Type: application/json
Date: [date] Date: [date]
@ -47,8 +47,8 @@ Transfer-Encoding: chunked
{ {
"answer": "yes", "answer": "yes",
"drink": "alcohol", "drink": "juice",
"food": "bats" "food": "pizza"
} }
``` ```

Loading…
Cancel
Save