18 lines
456 B
CoffeeScript
18 lines
456 B
CoffeeScript
`import { test, moduleForComponent } from 'ember-qunit'`
|
|
|
|
moduleForComponent 'running-jobs-item', {
|
|
# specify the other units that are required for this test
|
|
needs: ['mixin:polling', 'service:polling']
|
|
}
|
|
|
|
test 'it renders', (assert) ->
|
|
assert.expect 2
|
|
|
|
# creates the component instance
|
|
component = @subject()
|
|
assert.equal component._state, 'preRender'
|
|
|
|
# renders the component to the page
|
|
@render()
|
|
assert.equal component._state, 'inDOM'
|