<commit_before>import { module, test } from 'qunit';
import { setupRenderingTest } from 'ember-qunit';
import { render } from '@ember/test-helpers';
import hbs from 'htmlbars-inline-precompile';


module('Integration | Component | metrics counter', function(hooks) {
  setupRenderingTest(hooks);


  test('it renders no citations', async function(assert) {
    this.set('data', {views: 232333});
    await render(hbs`{{metrics-counter label="View" orcid="0000-0002-4695-7874" model=data}}`);

    assert.dom('div#metrics-counter-doi').hasText('232.3K');
    assert.dom('h3.panel-title').hasText('Views total reported');
  });
});<commit_msg>fix specs<commit_after>import { module, test } from 'qunit';
import { setupRenderingTest } from 'ember-qunit';
import { render } from '@ember/test-helpers';
import hbs from 'htmlbars-inline-precompile';


module('Integration | Component | metrics counter', function(hooks) {
  setupRenderingTest(hooks);


  test('it renders no citations', async function(assert) {
    this.set('data', {views: 232333});
    await render(hbs`{{metrics-counter label="View" orcid="0000-0002-4695-7874" model=data}}`);

    assert.dom('div#metrics-counter-doi').hasText('232.3K');
    assert.dom('h3.panel-title').hasText('Views total');
  });
});
{'fraction_non_alphanumeric': 0.17494089834515367, 'fraction_numerical': 0.0425531914893617, 'mean_word_length': 5.446700507614213, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '6955741', 'n_tokens_mistral': 440, 'n_tokens_neox': 406, 'n_words': 82}