import { test } from 'ember-qunit';
import hbs from 'htmlbars-inline-precompile';
import moduleForComponent from 'web-client/tests/helpers/module-for-component';

moduleForComponent('front-page/header-bar/premium/upsell-premium', 'Integration | Component | front-page/header-bar/premium/upsell-premium', {
  integration: true,

  beforeEach() {
    this.inject.service('premium-geo');

    this.get('premium-geo').set('isPrimeGeo', true);
  }
});

test('renders twitch prime upsell', function(assert) {
  this.render(hbs`{{front-page/header-bar/premium/upsell-premium}}`);

  assert.elementText(this.$(), 'Try Twitch Prime', 'Displays the twitch prime upsell');
});
