From 86127a24f73ee29be6821ce06561c5f62f53be3f Mon Sep 17 00:00:00 2001 From: Tom <20648924+moT01@users.noreply.github.com> Date: Wed, 8 Jan 2020 14:31:19 -0600 Subject: [PATCH] fix: add tests for header parser microservice project (#37187) * fix: add tests for header parser microservice project * fix: make test more robust * fix: make text use 'should' --- .../request-header-parser-microservice.english.md | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/curriculum/challenges/english/05-apis-and-microservices/apis-and-microservices-projects/request-header-parser-microservice.english.md b/curriculum/challenges/english/05-apis-and-microservices/apis-and-microservices-projects/request-header-parser-microservice.english.md index 5b84b6792c..93f0b2931d 100644 --- a/curriculum/challenges/english/05-apis-and-microservices/apis-and-microservices-projects/request-header-parser-microservice.english.md +++ b/curriculum/challenges/english/05-apis-and-microservices/apis-and-microservices-projects/request-header-parser-microservice.english.md @@ -23,9 +23,13 @@ Start this project on Glitch using ipaddress key.' + testString: 'getUserInput => $.get(getUserInput(''url'') + ''/api/whoami'').then(data => assert(data.ipaddress && data.ipaddress.length > 0), xhr => { throw new Error(xhr.responseText)})' + - text: 'Your preferred language should be returned in the language key.' + testString: 'getUserInput => $.get(getUserInput(''url'') + ''/api/whoami'').then(data => assert(data.language && data.language.length > 0), xhr => { throw new Error(xhr.responseText)})' + - text: 'Your software should be returned in the software key.' + testString: 'getUserInput => $.get(getUserInput(''url'') + ''/api/whoami'').then(data => assert(data.software && data.software.length > 0), xhr => { throw new Error(xhr.responseText)})' + ```