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
Could we provide description of how to test mixins in controllers? Mixins are often used in big apps so I think It's important to test it. For example:
test('it changes page to first after choosing query',function(assert){constsearchController=Controller.extend(Paginated,{previousQuery: ''}).create();constmockParachuteObject={changes: {q: 'test',page: 10}};searchController.setFirstPage(mockParachuteObject);assert.equal(searchController.page,1);});
The text was updated successfully, but these errors were encountered:
Could we provide description of how to test mixins in controllers? Mixins are often used in big apps so I think It's important to test it. For example:
The text was updated successfully, but these errors were encountered: