Skip to content

Commit

Permalink
fix www unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Pierre Tardy committed Mar 17, 2014
1 parent 3c81c07 commit 0658806
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion www/src/scripts/directives/buildsummary.coffee
Expand Up @@ -16,7 +16,7 @@ angular.module('app').controller 'buildsummaryController',
buildrequestURLMatcher = $urlMatcherFactory.compile(
"#{config.url}#buildrequests/{buildrequestid:[0-9]+}")
buildURLMatcher = $urlMatcherFactory.compile(
"#{config.url}#builders/{builderid}/builds/{buildid:[0-9]+}")
"#{config.url}#builders/{builderid:[0-9]+}/builds/{buildid:[0-9]+}")

NONE = 0
ONLY_NOT_SUCCESS = 1
Expand Down
Expand Up @@ -102,7 +102,7 @@ if window.__karma__?
config.url = 'http://localhost:5000/'
controller = createController()
$httpBackend.flush()
expect($scope.isBuildRequestURL("http://localhost:5000/#builders/123/builds/123"))
expect($scope.isBuildURL("http://localhost:5000/#builders/123/builds/123"))
.toBe(true)
expect($scope.isBuildRequestURL("http://localhost:5000/#builders/sdf/builds/123"))
expect($scope.isBuildURL("http://localhost:5000/#builders/sdf/builds/123"))
.toBe(false)

0 comments on commit 0658806

Please sign in to comment.