travis-web/tests/unit/components/running-jobs-item-test.coffee
Piotr Sarnacki f8390b8f82 Fix tests
2015-05-07 13:49:22 +02:00

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'