Skip to content

Commit

Permalink
Tests: Update custom display function tests and it now provides a cal…
Browse files Browse the repository at this point in the history
…lback
  • Loading branch information
AllanJard committed Mar 16, 2023
1 parent 859d910 commit 2fc2438
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/option/responsive.details.display.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,11 @@ describe('Responsive - responsive.details.display', function() {
expect($('td.child ul li').length).toBe(30);
});
it('Check arguments', function() {
expect(args.length).toBe(3);
expect(args.length).toBe(4);
expect(args[0] instanceof $.fn.dataTable.Api).toBe(true);
expect(typeof args[1]).toBe('boolean');
expect(typeof args[2]).toBe('function');
expect(typeof args[3]).toBe('function');
});
it('Close a parent', function() {
$('tbody tr:eq(2) td:eq(0)').click();
Expand Down

0 comments on commit 2fc2438

Please sign in to comment.