Skip to content

Commit

Permalink
fix(challenges): Add check for function name in test cases
Browse files Browse the repository at this point in the history
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 freeCodeCamp#15591
  • Loading branch information
vs1682 committed Jul 23, 2017
1 parent 074869d commit 1d7063c
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -942,7 +942,7 @@
""
],
"tests": [
"assert(typeof glideMixin === \"function\", 'message: Your code should declare a <code>glideMixin</code> variable that is a function.');",
"assert(typeof glideMixin === \"function\" && glideMixin.name === \"glideMixin\", 'message: Your code should declare a <code>glideMixin</code> variable that is a function.');",
"assert(typeof bird.glide === \"function\", 'message: Your code should use the <code>glideMixin</code> on the <code>bird</code> object to give it the <code>glide</code> method.');",
"assert(typeof boat.glide === \"function\", 'message: Your code should use the <code>glideMixin</code> on the <code>boat</code> object to give it the <code>glide</code> method.');"
],
Expand Down

0 comments on commit 1d7063c

Please sign in to comment.