Skip to content

Instantly share code, notes, and snippets.

@danielhusar
Created January 10, 2017 13:46
Show Gist options
  • Save danielhusar/e2992565f65f40c57802af96a8094fb7 to your computer and use it in GitHub Desktop.
Save danielhusar/e2992565f65f40c57802af96a8094fb7 to your computer and use it in GitHub Desktop.
const test1 = {test: true};
let component;
componentIntegrationTest('', '', {
beforeEach() {
this.render(hbs`{{change-item-component test1=test1 test2="test2" }}`);
component = getComponentInstance(this);
}
});
test('puts read more button when there is image', function(assert) {
assert.expect(1);
console.log(component.get('test1')); // undefined
console.log(component.get('test2')); // test2
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment