Skip to content

Step 2: Part 3 - test does not account for header row #9

Description

@joargp

The tests for ProductRows failed when we added a header row based on the UI-template given with "Name" and "Price" in the top.

We thought this was a ProductRow in the top, so we initialized the result array with a ProductRow.

var result = [
    ProductRow({name:"Name", price:"Price"}) 
];

This is due to the test expecting the same amount of ProductRows as there is products.

Maybe add a Header row as well?

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions