Refactor meas search -> component

This commit is contained in:
Matthew Dillon 2015-06-16 16:17:27 -08:00
parent 3c1fca43b8
commit adda1291c6
6 changed files with 106 additions and 72 deletions

View file

@ -0,0 +1,19 @@
import { moduleForComponent, test } from 'ember-qunit';
moduleForComponent('measurement-search-panel', 'Unit | Component | measurement search panel', {
// 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');
});