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

moduleForComponent('preprint-footer-branded', 'Integration | Component | preprint footer branded', {
  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.set('mode.name', 'My Provider');
    this.render(hbs`{{preprint-footer-branded}}`);

  // assert.equal(this.$().text().trim(), 'My Provider:');

    assert.ok(this);
});

@@ -232,18 +232,21 @@
 st('
-it rend
+shows Twitt
 er
-s
 ', f
@@ -269,187 +269,1180 @@
 %7B%0A  
-// Set any properties with this.set('myProperty', 'value'
+  this.set('model', %7B%0A        socialTwitter: 'vincestaples'%0A    %7D);%0A%0A    this.render(hbs%60%7B%7Bpreprint-footer-branded model=model%7D%7D%60);%0A%0A    assert.equal(this.$('.fa-twitter').length, 1);%0A    assert.equal(this.$('.fa-facebook').length, 0);%0A    assert.equal(this.$('.fa-instagram').length, 0);%0A%7D);%0A%0Atest('shows Facebook', function(assert) %7B%0A    this.set('model', %7B%0A        socialFacebook: 'theWeatherStn'%0A    %7D
 );%0A
+%0A
   
-// Handle any actions with this.on('myAction', function(val) %7B ... %7D);%0A%0A    // this.set('mode.name', 'My Provider'
+  this.render(hbs%60%7B%7Bpreprint-footer-branded model=model%7D%7D%60);%0A%0A    assert.equal(this.$('.fa-twitter').length, 0);%0A    assert.equal(this.$('.fa-facebook').length, 1);%0A    assert.equal(this.$('.fa-instagram').length, 0);%0A%7D);%0A%0Atest('shows Instagram', function(assert) %7B%0A    this.set('model', %7B%0A        socialInstagram: 'welpherewego'%0A    %7D);%0A%0A    this.render(hbs%60%7B%7Bpreprint-footer-branded model=model%7D%7D%60);%0A%0A    assert.equal(this.$('.fa-twitter').length, 0);%0A    assert.equal(this.$('.fa-facebook').length, 0);%0A    assert.equal(this.$('.fa-instagram').length, 1);%0A%7D);%0A%0Atest('shows all social', function(assert) %7B%0A    this.set('model', %7B%0A        socialTwitter: 'vincestaples',%0A        socialFacebook: 'theWeatherStn',%0A        socialInstagram: 'welpherewego'%0A    %7D
 );%0A
+%0A
     
@@ -1482,16 +1482,28 @@
 -branded
+ model=model
 %7D%7D%60);%0A%0A 
@@ -1507,10 +1507,9 @@
 %0A%0A  
-//
+ 
  ass
@@ -1529,61 +1529,399 @@
 s.$(
-).text().trim(), 'My Provider:');%0A%0A    assert.ok(this
+'.fa-twitter').length, 1);%0A    assert.equal(this.$('.fa-facebook').length, 1);%0A    assert.equal(this.$('.fa-instagram').length, 1);%0A%7D);%0A%0Atest('uses provider name', function(assert) %7B%0A    const name = 'Social Experiment';%0A    this.set('model', %7B name %7D);%0A%0A    this.render(hbs%60%7B%7Bpreprint-footer-branded model=model%7D%7D%60);%0A%0A    assert.ok(this.$(%60.branded-footer-links:contains('$%7Bname%7D')%60).length
 );%0A%7D

Add preprint-footer-branded tests