Roughing in measurements again

This commit is contained in:
Matthew Dillon 2015-06-05 15:48:15 -08:00
parent 6f50a381fc
commit 878e8d1b60
12 changed files with 127 additions and 20 deletions

View file

@ -0,0 +1,18 @@
import { moduleForComponent, test } from 'ember-qunit';
moduleForComponent('measurement-index-row', 'Unit | Component | measurement index row', {
// Specify the other units that are required for this test
// needs: ['component:foo', 'helper:bar']
});
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');
});

View file

@ -0,0 +1,11 @@
import { moduleFor, test } from 'ember-qunit';
moduleFor('route:measurements', 'Unit | Route | measurements', {
// Specify the other units that are required for this test.
// needs: ['controller:foo']
});
test('it exists', function(assert) {
var route = this.subject();
assert.ok(route);
});