Open absynce opened 10 years ago
@absynce i think include.test.js
is the right place because this scope method relies on include
clause. Don't worry about existing tests, just organize them in natural way (you may want to add another tests section for that feature)
I added behavior to return data on async getter (include) for hasMany, e.g. user.posts(c) returns Array, to be consistent with belongsTo behavior.
@1602 where should I test this? I initially thought
scope.test.js
since it's a change in that file butinclude.test.js
looks like it is closer in setup. Although it doesn't appear to test public API behavior.