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"); ```