import { module, test } from 'qunit';
import { setupIntegrationTest } from 'open-event-frontend/tests/helpers/setup-integration-test';
import hbs from 'htmlbars-inline-precompile';
import { render } from '@ember/test-helpers';

module('Integration | Component | widgets/forms/file upload', function(hooks) {
  setupIntegrationTest(hooks);

  test('it renders', async function(assert) {
    await render(hbs`{{widgets/forms/file-upload maxSizeInKb=10000 hint=(t 'Select a file')}}`);
    assert.ok(this.element.innerHTML.trim().includes('Select'));
  });
});
