Skip to content

Edit test.js so it won't accept statically defined strings as correct answers #10

Description

@larahowerton

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions