travis-web/tests/unit/components/running-jobs-item-test.coffee
Piotr Sarnacki a4a75912b0 Implement ajax polling for things that are visible on the screen
We sometimes miss pusher updates, which started to be more common
lately. Until we investigate what's going on, this should be a good
workaround for keeping UI in sync with the DB.
2015-05-07 13:49:21 +02:00

18 lines
453 B
CoffeeScript

`import { test, moduleForComponent } from 'ember-qunit'`
moduleForComponent 'running-jobs-item', {
# specify the other units that are required for this test
# needs: ['component:foo', 'helper:bar']
}
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'