You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Edit test.js so it won't accept statically defined strings as correct answers #10
The question was specifically raised for splitArray() -- the test was passing when a student had statically defined the correct strings within the function.
it('function "splitArray" should return a sentence like "Tim Horton was a Donut."', function() {
assert.equal(fns.splitArray (['Tim', 'Horton', 'Donut']), 'Tim Horton was a Donut.',
'Ohh, that\'s not as delicious as I expected.');
});
Check for other functions where this might be a problem.
Activity
update tests to avoid false negatives