1. /* global QUnit */
    
  2. 'use strict';
    
  3. 
    
  4. QUnit.module('admin.actions', {
    
  5.     beforeEach: function() {
    
  6.         // Number of results shown on page
    
  7.         /* eslint-disable */
    
  8.         window._actions_icnt = '100';
    
  9.         /* eslint-enable */
    
  10. 
    
  11.         const $ = django.jQuery;
    
  12.         $('#qunit-fixture').append($('#result-table').text());
    
  13. 
    
  14.         Actions(document.querySelectorAll('tr input.action-select'));
    
  15.     }
    
  16. });
    
  17. 
    
  18. QUnit.test('check', function(assert) {
    
  19.     const $ = django.jQuery;
    
  20.     assert.notOk($('.action-select').is(':checked'));
    
  21.     $('#action-toggle').click();
    
  22.     assert.ok($('.action-select').is(':checked'));
    
  23. });