From 6ccd0d21a1ab40d2a7ce6d5a3a4ca1bd4d86387f Mon Sep 17 00:00:00 2001 From: Nicholas Carrigan Date: Thu, 24 Sep 2020 12:08:40 -0700 Subject: [PATCH] fix(learn): Update test text in Profile Lookup (#39678) --- .../basic-javascript/profile-lookup.english.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-javascript/profile-lookup.english.md b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-javascript/profile-lookup.english.md index f567d93b2b..099bf75fb9 100644 --- a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-javascript/profile-lookup.english.md +++ b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-javascript/profile-lookup.english.md @@ -26,17 +26,17 @@ If prop does not correspond to any valid properties of a contact fo ```yml tests: - - text: "Kristian", "lastName" should return "Vos" + - text: lookUpProfile("Kristian", "lastName") should return "Vos" testString: assert(lookUpProfile('Kristian','lastName') === "Vos"); - - text: "Sherlock", "likes" should return ["Intriguing Cases", "Violin"] + - text: lookUpProfile("Sherlock", "likes") should return ["Intriguing Cases", "Violin"] testString: assert.deepEqual(lookUpProfile("Sherlock", "likes"), ["Intriguing Cases", "Violin"]); - - text: "Harry","likes" should return an array + - text: lookUpProfile("Harry", "likes") should return an array testString: assert(typeof lookUpProfile("Harry", "likes") === "object"); - - text: "Bob", "number" should return "No such contact" + - text: lookUpProfile("Bob", "number") should return "No such contact" testString: assert(lookUpProfile("Bob", "number") === "No such contact"); - - text: "Bob", "potato" should return "No such contact" + - text: lookUpProfile("Bob", "potato") should return "No such contact" testString: assert(lookUpProfile("Bob", "potato") === "No such contact"); - - text: "Akira", "address" should return "No such property" + - text: lookUpProfile("Akira", "address") should return "No such property" testString: assert(lookUpProfile("Akira", "address") === "No such property"); ```