diff --git a/tests/unit/utils/status-image-formats-test.coffee b/tests/unit/utils/status-image-formats-test.coffee new file mode 100644 index 00000000..3be2c2cc --- /dev/null +++ b/tests/unit/utils/status-image-formats-test.coffee @@ -0,0 +1,13 @@ +`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'