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
If a dev wants to provide fake data for testing purposes there currently isn't a good way to do so. They could override the model's getList, etc. methods, but then they would have to reset it on each test.
The way I've been thinking about it would be a way to inject data to be used in the next iteration. Something like:
Todo.inject("getList",{some: "data"})
The next time getList is called, this data would be used. I don't seriously like this API at this point, just starting with it for the sake of discussion.
The text was updated successfully, but these errors were encountered:
If a dev wants to provide fake data for testing purposes there currently isn't a good way to do so. They could override the model's getList, etc. methods, but then they would have to reset it on each test.
The way I've been thinking about it would be a way to inject data to be used in the next iteration. Something like:
The next time
getList
is called, this data would be used. I don't seriously like this API at this point, just starting with it for the sake of discussion.The text was updated successfully, but these errors were encountered: