travis-web/tests/unit/utils/status-image-formats-test.coffee
2015-03-23 11:59:20 +01:00

14 lines
508 B
CoffeeScript

`import Ember from 'ember'`
`import format from 'travis/utils/status-image-formats'`
`import config from 'travis/config/environment'`
module 'Status image formats'
test 'it generates CCTray url with a slug', ->
url = format('CCTray', 'travis-ci/travis-web')
equal url, '#/repos/travis-ci/travis-web/cc.xml'
test 'it generates CCTray url with a slug and a branch', ->
url = format('CCTray', 'travis-ci/travis-web', 'development')
equal url, '#/repos/travis-ci/travis-web/cc.xml?branch=development'