Skip to content
This repository has been archived by the owner on Jul 18, 2019. It is now read-only.

It works with ember g it-works-2. #2

Merged
merged 1 commit into from
Aug 2, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions app/components/it-works-2.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import Ember from 'ember';

export default Ember.Component.extend({
});
1 change: 1 addition & 0 deletions app/templates/components/it-works-2.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{{yield}}
24 changes: 24 additions & 0 deletions tests/integration/components/it-works-2-test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import { moduleForComponent, test } from 'ember-qunit';
import hbs from 'htmlbars-inline-precompile';

moduleForComponent('it-works-2', 'Integration | Component | it works 2', {
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`{{it-works-2}}`);

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

// Template block usage:
this.render(hbs`
{{#it-works-2}}
template block text
{{/it-works-2}}
`);

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