From 1d7063cab990e21c4f4e853aeb8097fa4b00f7c9 Mon Sep 17 00:00:00 2001 From: Vishal Shinde Date: Sun, 23 Jul 2017 12:43:52 +0530 Subject: [PATCH] fix(challenges): Add check for function name in test cases Changed a test case where it checks that the user defined function name matches to that given in instructions. BREAKING CHANGE: no breaking change Closes #15591 --- .../object-oriented-programming.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/seed/challenges/02-javascript-algorithms-and-data-structures/object-oriented-programming.json b/seed/challenges/02-javascript-algorithms-and-data-structures/object-oriented-programming.json index ef9a16e36b0b08..a551f3e4434538 100644 --- a/seed/challenges/02-javascript-algorithms-and-data-structures/object-oriented-programming.json +++ b/seed/challenges/02-javascript-algorithms-and-data-structures/object-oriented-programming.json @@ -942,7 +942,7 @@ "" ], "tests": [ - "assert(typeof glideMixin === \"function\", 'message: Your code should declare a glideMixin variable that is a function.');", + "assert(typeof glideMixin === \"function\" && glideMixin.name === \"glideMixin\", 'message: Your code should declare a glideMixin variable that is a function.');", "assert(typeof bird.glide === \"function\", 'message: Your code should use the glideMixin on the bird object to give it the glide method.');", "assert(typeof boat.glide === \"function\", 'message: Your code should use the glideMixin on the boat object to give it the glide method.');" ],