<commit_before>import { moduleForComponent, test } from 'ember-qunit';
import hbs from 'htmlbars-inline-precompile';

moduleForComponent('isp-consent-form', 'Integration | Component | isp consent form', {
  integration: true
});

test('it renders', function(assert) {
  // Set any properties with this.set('myProperty', 'value');
  // Handle any actions with this.on('myAction', function(val) { ... });

  this.render(hbs`{{isp-consent-form}}`);

  assert.equal(this.$().text().trim(), '');

  // Template block usage:
  this.render(hbs`
    {{#isp-consent-form}}
      template block text
    {{/isp-consent-form}}
  `);

  assert.equal(this.$().text().trim(), 'template block text');
});<commit_msg>Add isp-consent-form test<commit_after>import { moduleForComponent, test } from 'ember-qunit';
import hbs from 'htmlbars-inline-precompile';

moduleForComponent('isp-consent-form', 'Integration | Component | isp consent form', {
  integration: true
});

test('it renders', function(assert) {
  this.set('studyId', 'test');
  this.set('grantConsent', (actual) => {
    assert.deepEqual(actual, true);
  });
  // Pass in hasGrantedConsent instead of setting property to override default value
  this.render(hbs`{{isp-consent-form studyId=studyId grantConsent=(action grantConsent) hasGrantedConsent=true}}`);
  assert.notOk((this.$('button').attr('disabled')));
  this.$('button').click();
});
{'fraction_non_alphanumeric': 0.1817528735632184, 'fraction_numerical': 0.0, 'mean_word_length': 4.978540772532189, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '531814', 'n_tokens_mistral': 446, 'n_tokens_neox': 436, 'n_words': 93}