decide.nolog.cz/tests/unit/components/poll-evaluation-summary-test.js
2015-11-03 12:57:41 +01:00

19 lines
555 B
JavaScript

import { moduleForComponent, test } from 'ember-qunit';
moduleForComponent('poll-evaluation-summary', 'Unit | Component | poll evaluation summary', {
// Specify the other units that are required for this test
// needs: ['component:foo', 'helper:bar'],
unit: true
});
test('it renders', function(assert) {
assert.expect(2);
// Creates the component instance
var component = this.subject();
assert.equal(component._state, 'preRender');
// Renders the component to the page
this.render();
assert.equal(component._state, 'inDOM');
});