Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
it('should re-run search on pagination change', () => {
const page = new Pagination({
maxItems: 10,
skipCount: 0
});
component.onPaginationChanged(page);
expect(queryBuilder.paging).toEqual({
maxItems: 10,
skipCount: 0
});
expect(queryBuilder.update).toHaveBeenCalled();
});
});