Bug: IBAN Exercise is testing my function with a Chai object rather than a test IBAN string

Tell us what’s happening:

I was trying to figure out why my code wasn’t working and I noticed, when I console.log(iban) inside the function , that the exercise isn’t testing my function with valid or invalid IBAN strings. Instead, an Object (that appears to be the Chai tests the exercise is validating my solution with) is being passed into the function.

Here is the output from console.log(iban)
testString: “assert(typeof isValid==‘function’,‘isValid should be a function.’);”
text: “‘isValid should be a function.’”

Your code so far

function isValid (iban) {
  var cCode = [

  // Good luck!

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36.

Link to the challenge: