-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Labels
enhancementNew feature or requestNew feature or request
Description
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) {
const searchController = Controller.extend(Paginated, {
previousQuery: ''
}).create();
const mockParachuteObject = {
changes: {
q: 'test',
page: 10
}
};
searchController.setFirstPage(mockParachuteObject);
assert.equal(searchController.page, 1);
});
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request