mantrajs / mantra-sample-blog-app

A sample blog app built with Mantra
http://mantra-sample-blog-app.herokuapp.com/
MIT License
296 stars 104 forks source link

Test component with the data from its methods #102

Closed renancouto closed 7 years ago

renancouto commented 8 years ago

The way this part of the test is, does not make much sense because you are expecting the value (postId and text) to be equal than itself, which it always will.

In this PR, I'm getting the values from the component's create method in order to compare with the test data.