Skip to content

Instantly share code, notes, and snippets.

@danielhusar
Created January 10, 2017 13:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danielhusar/e54c9463630bd1de000b95c377f785b1 to your computer and use it in GitHub Desktop.
Save danielhusar/e54c9463630bd1de000b95c377f785b1 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