From 92d55265b2eb8e53b483bf6fae43eec8cfb58203 Mon Sep 17 00:00:00 2001 From: Matthew Dillon Date: Fri, 12 Jun 2015 11:23:04 -0800 Subject: [PATCH] Remove scientific-name component --- .../components/scientific-name/component.js | 6 ------ .../components/scientific-name/template.hbs | 1 - tests/unit/components/scientific-name-test.js | 21 ------------------- 3 files changed, 28 deletions(-) delete mode 100644 app/pods/components/scientific-name/component.js delete mode 100644 app/pods/components/scientific-name/template.hbs delete mode 100644 tests/unit/components/scientific-name-test.js diff --git a/app/pods/components/scientific-name/component.js b/app/pods/components/scientific-name/component.js deleted file mode 100644 index 40bf39c..0000000 --- a/app/pods/components/scientific-name/component.js +++ /dev/null @@ -1,6 +0,0 @@ -import Ember from 'ember'; - -export default Ember.Component.extend({ - tagName: 'span', - strain: null, // passed in -}); diff --git a/app/pods/components/scientific-name/template.hbs b/app/pods/components/scientific-name/template.hbs deleted file mode 100644 index 1f3609e..0000000 --- a/app/pods/components/scientific-name/template.hbs +++ /dev/null @@ -1 +0,0 @@ -{{strain.species.speciesName}} (strain {{strain-name strain=strain}}) diff --git a/tests/unit/components/scientific-name-test.js b/tests/unit/components/scientific-name-test.js deleted file mode 100644 index b6a7957..0000000 --- a/tests/unit/components/scientific-name-test.js +++ /dev/null @@ -1,21 +0,0 @@ -import { - moduleForComponent, - test -} from 'ember-qunit'; - -moduleForComponent('scientific-name', { - // 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'); -});