Skip to content

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

@larahowerton

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions