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

moduleForComponent('pretty-column-display', 'Integration | Component | pretty column display', {
  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`{{pretty-column-display}}`);

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

  // Template block usage:
  this.render(hbs`
    {{#pretty-column-display}}
      template block text
    {{/pretty-column-display}}
  `);

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

@@ -260,144 +260,39 @@
 ) %7B%0A
-%0A
   
-// Set any properties with this.set('myProperty', 'value');%0A  // Handle any actions with this.on('myAction', function(val) %7B ... %7D);%0A
+this.set('items', %5B'1', '2'%5D)
 %0A  t
@@ -306,18 +306,24 @@
 der(hbs%60
+%0A    
 %7B%7B
+#
 pretty-c
@@ -339,162 +339,47 @@
 play
-%7D%7D%60);%0A%0A  assert.equal(this.$().text().trim(), '');%0A%0A  // Template block usage:%0A  this.render(hbs%60%0A    %7B%7B#pretty-column-display%7D%7D%0A      template block text
+ items=items as %7Citem%7C%7D%7D%0A      %7B%7Bitem%7D%7D
 %0A   
@@ -457,27 +457,11 @@
 ), '
-template block text
+1 2
 ');%0A

Test for pretty-column display