commit/galaxy-central: carlfeberhard: Browser tests: remove starting slash from workflow return url comparisons
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/eb26a9648323/ Changeset: eb26a9648323 User: carlfeberhard Date: 2015-02-03 14:00:51+00:00 Summary: Browser tests: remove starting slash from workflow return url comparisons Affected #: 1 file diff -r adcb595753b02cc9757a8f36a34898d4ea2233e7 -r eb26a96483238cd353c3fc1bdce9699382dfadb6 test/casperjs/api-workflow-tests.js --- a/test/casperjs/api-workflow-tests.js +++ b/test/casperjs/api-workflow-tests.js @@ -55,7 +55,7 @@ "uploaded workflow defaults to un-published: " + returned.published ); this.test.assert( utils.isArray( returned.tags ) && returned.tags.length === 0, "upload returned an empty tag array: " + this.jsonStr( returned.tags ) ); - this.test.assert( returned.url === '/' + utils.format( this.api.workflows.urlTpls.show, returned.id ), + this.test.assert( returned.url === utils.format( this.api.workflows.urlTpls.show, returned.id ), "url matches the show url: " + returned.url ); @@ -79,7 +79,7 @@ "workflow is un-published: " + firstWorkflow.published ); this.test.assert( utils.isArray( firstWorkflow.tags ) && firstWorkflow.tags.length === 0, "tag array is empty: " + this.jsonStr( firstWorkflow.tags ) ); - this.test.assert( firstWorkflow.url === '/' + utils.format( this.api.workflows.urlTpls.show, firstWorkflow.id ), + this.test.assert( firstWorkflow.url === utils.format( this.api.workflows.urlTpls.show, firstWorkflow.id ), "url matches the show url: " + firstWorkflow.url ); @@ -99,7 +99,7 @@ "workflow is un-published: " + workflowShow.published ); this.test.assert( utils.isArray( workflowShow.tags ) && workflowShow.tags.length === 0, "tag array is empty: " + this.jsonStr( workflowShow.tags ) ); - this.test.assert( workflowShow.url === '/' + utils.format( this.api.workflows.urlTpls.show, workflowShow.id ), + this.test.assert( workflowShow.url === utils.format( this.api.workflows.urlTpls.show, workflowShow.id ), "url matches the show url: " + workflowShow.url ); this.test.comment( 'inputs from show should be an object (and, in this case, empty)' ); Repository URL: https://bitbucket.org/galaxy/galaxy-central/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email.
participants (1)
-
commits-noreply@bitbucket.org