nebius/SWE-rebench-V2-PRs huggingface dataset:
Repository: jira-node/node-jira-client
Pull request #9 (2016-01-15 00:01:40)

Add functionality to add attachment on issue


Patch:
diff --git a/src/jira.js b/src/jira.js
index 6703bc9..5b08450 100644
--- a/src/jira.js
+++ b/src/jira.js
@@ -628,4 +628,24 @@ export default class JiraApi {
       }
     }));
   }
+
+
+  /** Add attachment to a Issue
+   * @name addAttachmentOnIssue
+   * @function
+   * @param {string} issueId - issue id
+   * @param {object} readStream - readStream object from fs
+   */
+  addAttachmentOnIssue(issueId, readStream) {
+    return this.doRequest(this.makeRequestHeader('/issue/' + issueId + '/attachments', {
+      method: 'POST',
+      headers: {
+        'X-Atlassian-Token': 'nocheck'
+      },
+      formData: {
+        file: readStream
+      }
+    }));
+  }
+
 }


Test patch:
diff --git a/test/jira-tests.js b/test/jira-tests.js
index c0ecf17..eb1e92d 100644
--- a/test/jira-tests.js
+++ b/test/jira-tests.js
@@ -432,5 +432,11 @@ describe('Jira API Tests', () => {
         .should.eventually.eql('http://jira.somehost.com:8080/rest/api/2.0/xboard/plan/backlog/data?rapidViewId=someRapidViewId')
         .and.notify(done);
     });
+
+    it('addAttachmentOnIssue hits proper url', (done) => {
+      dummyURLCall('addAttachmentOnIssue', ['someIssueId', {}])
+        .should.eventually.eql('http://jira.somehost.com:8080/rest/api/2.0/issue/someIssueId/attachments')
+        .and.notify(done);
+    });
   });
 });
Repository: jira-node/node-jira-client
Pull request #21 (2016-01-28 13:59:58)

Account for empty responses from rest API
Sometimes, there is no response during a successful operation from the
JIRA rest API, and this should handle that in the short term.  A better
solution might be to check the status code of the response, and only
check for errors if it is a 4XX or 5XX status code.  This is an attempt
to resolve issue #20


Patch:
diff --git a/src/jira.js b/src/jira.js
index 26b1be9..ea56a4b 100644
--- a/src/jira.js
+++ b/src/jira.js
@@ -111,9 +111,10 @@ export default class JiraApi {
     };
 
     const response = await this.request(options);
-
-    if (Array.isArray(response.errorMessages) && response.errorMessages.length > 0) {
-      throw new Error(response.errorMessages.join(', '));
+    if (response) {
+      if (Array.isArray(response.errorMessages) && response.errorMessages.length > 0) {
+        throw new Error(response.errorMessages.join(', '));
+      }
     }
 
     return response;


Test patch:
diff --git a/test/jira-tests.js b/test/jira-tests.js
index b739fe4..ff7b68a 100644
--- a/test/jira-tests.js
+++ b/test/jira-tests.js
@@ -172,6 +172,21 @@ describe('Jira API Tests', () => {
       await jira.doRequest({})
         .should.eventually.be.rejectedWith('some error to throw, another error');
     });
+
+    it('doRequest does not throw an error on empty response', (done) => {
+      function dummyRequest(requestOptions) {
+        return Promise.resolve(undefined);
+      }
+      const jira = new JiraApi(
+        getOptions({
+          request: dummyRequest
+        })
+      );
+
+      jira.doRequest({})
+        .should.eventually.be.fulfilled
+        .and.notify(done);
+    });
   });
 
   describe('Request Functions Tests', () => {
Repository: jira-node/node-jira-client
Pull request #32 (2016-02-25 04:31:55)

Adds support for the version delete operation.
Allows for versions to be deleted per [JIRA version delete API](https://docs.atlassian.com/jira/REST/latest/#api/2/version-delete). Verified against local JIRA instance and unit tests pass.


Patch:
diff --git a/src/jira.js b/src/jira.js
index a6e4efb..78f1730 100644
--- a/src/jira.js
+++ b/src/jira.js
@@ -340,6 +340,31 @@ export default class JiraApi {
     }));
   }
 
+  /** Delete a version
+   * [Jira Doc](https://docs.atlassian.com/jira/REST/latest/#api/2/version-delete)
+   * @name deleteVersion
+   * @function
+   * @param {string} versionId - the ID of the version to delete
+   * @param {string} moveFixIssuesToId - when provided, existing fixVersions will be moved
+   *                 to this ID. Otherwise, the deleted version will be removed from all
+   *                 issue fixVersions.
+   * @param {string} moveAffectedIssuesToId - when provided, existing affectedVersions will
+   *                 be moved to this ID. Otherwise, the deleted version will be removed
+   *                 from all issue affectedVersions.
+   */
+  deleteVersion(versionId, moveFixIssuesToId, moveAffectedIssuesToId) {
+    return this.doRequest(this.makeRequestHeader(this.makeUri({
+      pathname: `/version/${versionId}`
+    }), {
+      method: 'DELETE',
+      followAllRedirects: true,
+      qs: {
+        moveFixIssuesTo: moveFixIssuesToId,
+        moveAffectedIssuesTo: moveAffectedIssuesToId
+      }
+    }));
+  }
+
   /** Pass a search query to Jira
    * [Jira Doc](https://docs.atlassian.com/jira/REST/latest/#d2e4424)
    * @name searchJira


Test patch:
diff --git a/test/jira-tests.js b/test/jira-tests.js
index 4c2c26c..532ddef 100644
--- a/test/jira-tests.js
+++ b/test/jira-tests.js
@@ -337,6 +337,15 @@ describe('Jira API Tests', () => {
       result.should.eql('http://jira.somehost.com:8080/rest/api/2.0/version/someVersionId');
     });
 
+    it('deleteVersion hits proper url', async () => {
+      const result = await dummyURLCall('deleteVersion', [
+        'someVersionId',
+        'someFixVersionId',
+        'someAffectedVersionId'
+      ]);
+      result.should.eql('http://jira.somehost.com:8080/rest/api/2.0/version/someVersionId?moveFixIssuesTo=someFixVersionId&moveAffectedIssuesTo=someAffectedVersionId');
+    });
+
     it('seachJira hits proper url', async () => {
       const result = await dummyURLCall('searchJira', ['someJQLhere', 'someOptionsObject']);
       result.should.eql('http://jira.somehost.com:8080/rest/api/2.0/search');
Repository: jira-node/node-jira-client
Pull request #36 (2016-03-07 15:15:31)

Fixed getLastSprintForRapidView
This should fix the problem seen in issue #35 


Patch:
diff --git a/src/jira.js b/src/jira.js
index 7646f9a..065e82f 100644
--- a/src/jira.js
+++ b/src/jira.js
@@ -23,6 +23,7 @@ export default class JiraApi {
       // This is so we can fake during unit tests
     this.request = options.request || request;
     this.webhookVersion = options.webHookVersion || '1.0';
+    this.greenhopperVersion = options.greenhopperVersion || '1.0';
     this.baseOptions = {};
 
     if (options.oauth && options.oauth.consumer_key && options.oauth.access_token) {
@@ -73,6 +74,8 @@ export default class JiraApi {
    * seconds](http://www.sekuda.com/overriding_the_default_linux_kernel_20_second_tcp_socket_connect_timeout)).
    * @property {string} [webhookVersion=1.0] - What webhook version does this api wrapper need to
    * hit?
+   * @property {string} [greenhopperVersion=1.0] - What webhook version does this api wrapper need
+   * to hit?
    * @property {OAuth} - Specify an oauth object for this tool to authenticate all requests using
    * OAuth.
    */
@@ -144,6 +147,22 @@ export default class JiraApi {
     return decodeURIComponent(uri);
   }
 
+  /**
+   * @name makeSprintQueryUri
+   * @function
+   * Creates a URI object for a given pathName
+   * @param {string} pathname - The url after the /rest/
+   */
+  makeSprintQueryUri({ pathname }) {
+    const uri = url.format({
+      protocol: this.protocol,
+      hostname: this.host,
+      port: this.port,
+      pathname: `${this.base}/rest/greenhopper/${this.greenhopperVersion}${pathname}`
+    });
+    return decodeURIComponent(uri);
+  }
+
   /**
    * @name doRequest
    * @function
@@ -234,7 +253,7 @@ export default class JiraApi {
    */
   async getLastSprintForRapidView(rapidViewId) {
     const response = await this.doRequest(
-      this.makeRequestHeader(this.makeUri({
+      this.makeRequestHeader(this.makeSprintQueryUri({
         pathname: `/sprintquery/${rapidViewId}`
       }))
     );


Test patch:
diff --git a/test/jira-tests.js b/test/jira-tests.js
index d1fc068..0366d92 100644
--- a/test/jira-tests.js
+++ b/test/jira-tests.js
@@ -136,6 +136,15 @@ describe('Jira API Tests', () => {
         .to.eql('http://jira.somehost.com:8080/rest/webhooks/1.0/somePathName');
     });
 
+    it('makeSprintQueryUri functions properly in the average case', () => {
+      const jira = new JiraApi(getOptions());
+
+      expect(jira.makeSprintQueryUri({
+        pathname: '/somePathName'
+      }))
+        .to.eql('http://jira.somehost.com:8080/rest/greenhopper/1.0/somePathName');
+    });
+
     it('makeUri functions properly no port http', () => {
       const {
         port,
@@ -341,7 +350,9 @@ describe('Jira API Tests', () => {
         ['someRapidViewId'],
         dummyRequest);
 
-      result.should.eql('http://jira.somehost.com:8080/rest/api/2.0/sprintquery/someRapidViewId');
+      result.should.eql(
+        'http://jira.somehost.com:8080/rest/greenhopper/1.0/sprintquery/someRapidViewId'
+      );
     });
 
     it('getSprintIssues hits proper url', async () => {
Repository: jira-node/node-jira-client
Pull request #37 (2016-03-09 21:46:41)

`findRapidView` should use the sprint uri not api uri
This function should use the greenhopper api rather than the standard rest api (why atlassian why?)

As is this forms the url `https://[host].atlassian.net/rest/api/2/rapidviews/list` but should be `https://[host].atlassian.net/rest/greenhopper/1.0/rapidviews/list`


Patch:
diff --git a/src/jira.js b/src/jira.js
index 065e82f..f7fce7d 100644
--- a/src/jira.js
+++ b/src/jira.js
@@ -153,12 +153,13 @@ export default class JiraApi {
    * Creates a URI object for a given pathName
    * @param {string} pathname - The url after the /rest/
    */
-  makeSprintQueryUri({ pathname }) {
+  makeSprintQueryUri({ pathname, query }) {
     const uri = url.format({
       protocol: this.protocol,
       hostname: this.host,
       port: this.port,
-      pathname: `${this.base}/rest/greenhopper/${this.greenhopperVersion}${pathname}`
+      pathname: `${this.base}/rest/greenhopper/${this.greenhopperVersion}${pathname}`,
+      query
     });
     return decodeURIComponent(uri);
   }
@@ -236,7 +237,7 @@ export default class JiraApi {
    * @param {string} projectName - name for the project
    */
   async findRapidView(projectName) {
-    const response = await this.doRequest(this.makeRequestHeader(this.makeUri({
+    const response = await this.doRequest(this.makeRequestHeader(this.makeSprintQueryUri({
       pathname: '/rapidviews/list'
     })));
 
@@ -267,7 +268,7 @@ export default class JiraApi {
    * @param {string} sprintId - the id for the sprint
    */
   getSprintIssues(rapidViewId, sprintId) {
-    return this.doRequest(this.makeRequestHeader(this.makeUri({
+    return this.doRequest(this.makeRequestHeader(this.makeSprintQueryUri({
       pathname: '/rapid/charts/sprintreport',
       query: {
         rapidViewId,


Test patch:
diff --git a/test/jira-tests.js b/test/jira-tests.js
index 0366d92..3d34c56 100644
--- a/test/jira-tests.js
+++ b/test/jira-tests.js
@@ -335,7 +335,7 @@ describe('Jira API Tests', () => {
       }
 
       const result = await dummyURLCall('findRapidView', ['theNameToLookFor'], dummyRequest);
-      result.should.eql('http://jira.somehost.com:8080/rest/api/2.0/rapidviews/list');
+      result.should.eql('http://jira.somehost.com:8080/rest/greenhopper/1.0/rapidviews/list');
     });
 
     it('getLastSprintForRapidView hits proper url', async () => {
@@ -358,7 +358,7 @@ describe('Jira API Tests', () => {
     it('getSprintIssues hits proper url', async () => {
       const result = await dummyURLCall('getSprintIssues', ['someRapidView', 'someSprintId']);
       result.should
-        .eql('http://jira.somehost.com:8080/rest/api/2.0/rapid/charts/sprintreport?rapidViewId=someRapidView&sprintId=someSprintId');
+        .eql('http://jira.somehost.com:8080/rest/greenhopper/1.0/rapid/charts/sprintreport?rapidViewId=someRapidView&sprintId=someSprintId');
     });
 
     it('addIssueToSprint hits proper url', async () => {
Repository: jira-node/node-jira-client
Pull request #52 (2016-04-19 12:01:39)

Fix getCurrentUser()
Should be getting /myself instead of /session.


Patch:
diff --git a/src/jira.js b/src/jira.js
index f9a7f5f..c071698 100644
--- a/src/jira.js
+++ b/src/jira.js
@@ -794,7 +794,7 @@ export default class JiraApi {
    */
   getCurrentUser() {
     return this.doRequest(this.makeRequestHeader(this.makeUri({
-      pathname: '/session',
+      pathname: '/myself',
     })));
   }
 


Test patch:
diff --git a/test/jira-tests.js b/test/jira-tests.js
index afcc205..41cddc1 100644
--- a/test/jira-tests.js
+++ b/test/jira-tests.js
@@ -540,7 +540,7 @@ describe('Jira API Tests', () => {
 
     it('getCurrentUser hits proper url', async () => {
       const result = await dummyURLCall('getCurrentUser', []);
-      result.should.eql('http://jira.somehost.com:8080/rest/api/2.0/session');
+      result.should.eql('http://jira.somehost.com:8080/rest/api/2.0/myself');
     });
 
     it('getBacklogForRapidView hits proper url', async () => {
Repository: jira-node/node-jira-client
Pull request #60 (2016-05-03 06:54:26)

squash to one commit
Squashed to one commit - sorry for submitting two pull requests rebasing turned into a disaster quick.

mtscout6: Sorry to give you the run around with git practices. I've got one more request though. Can you amend the commit message to be meaningful? What I mean is that your message does not reflect that the commit is adding to the repo:

> squash to one commit

I aim to make this easier for you this time around. In order to amend the commit message make sure you are the branch you did your work on. Then run `git commit --amend`, this should open your editor with the existing commit message, modify it then save and close your editor.

Next you'll need to update this pull request. What I'm going to describe should be used with caution as it is a destructive command and most git newbies are generally discouraged from using it. You want to avoid this command on any publicly accessible branch that people are not expecting to change. In this case though the branch is expected to change which is why it's safe at this time. Run `git push -f` the -f means force. It's a forced push because the branches have technically diverged from one another. By passing the -f command you are telling git that you know they are diverged, but you local copy is what you want.

Patch:
diff --git a/src/jira.js b/src/jira.js
index 645a05f..df7d219 100644
--- a/src/jira.js
+++ b/src/jira.js
@@ -231,6 +231,22 @@ export default class JiraApi {
     })));
   }
 
+/**
+   * @name createProject
+   * @function
+   * Create a new Project
+   * [Jira Doc](https://docs.atlassian.com/jira/REST/latest/#api/2/project-createProject)
+   * @param {object} project - with specs
+   */
+  createProject(project) {
+    return this.doRequest(this.makeRequestHeader(this.makeUri({
+      pathname: '/project/',
+    }), {
+      method: 'POST',
+      body: project,
+    }));
+  }
+
   /** Find the Rapid View for a specified project
    * @name findRapidView
    * @function


Test patch:
diff --git a/test/jira-tests.js b/test/jira-tests.js
index ebf98a0..4ed93bb 100644
--- a/test/jira-tests.js
+++ b/test/jira-tests.js
@@ -333,6 +333,11 @@ describe('Jira API Tests', () => {
       result.should.eql('http://jira.somehost.com:8080/rest/api/2.0/project/someProject');
     });
 
+    it('createProject hits proper url', async () => {
+      const result = await dummyURLCall('createProject', ['dummyObject']);
+      result.should.eql('http://jira.somehost.com:8080/rest/api/2.0/project/');
+    });
+
     it('findRapidView hits proper url', async () => {
       async function dummyRequest(requestOptions) {
         return {
Repository: jira-node/node-jira-client
Pull request #104 (2016-09-12 23:09:20)

Add parameter to specify resource expansion for findIssue
The whole resource expansion concept of JIRA is described here: https://docs.atlassian.com/jira/REST/cloud/#expansion

I want to use this new parameter to be able to fetch the changelog of an issue.


Patch:
diff --git a/src/jira.js b/src/jira.js
index df7d219..21ebd1f 100644
--- a/src/jira.js
+++ b/src/jira.js
@@ -193,10 +193,14 @@ export default class JiraApi {
    * Find an issue in jira
    * [Jira Doc](http://docs.atlassian.com/jira/REST/latest/#id290709)
    * @param {string} issueNumber - The issue number to search for including the project key
+   * @param {string} expand - The resource expansion to return additional fields in the response
    */
-  findIssue(issueNumber) {
+  findIssue(issueNumber, expand) {
     return this.doRequest(this.makeRequestHeader(this.makeUri({
       pathname: `/issue/${issueNumber}`,
+      query: {
+        expand: expand || '',
+      },
     })));
   }
 


Test patch:
diff --git a/test/jira-tests.js b/test/jira-tests.js
index 4ed93bb..d649783 100644
--- a/test/jira-tests.js
+++ b/test/jira-tests.js
@@ -315,7 +315,12 @@ describe('Jira API Tests', () => {
 
     it('findIssue hits proper url', async () => {
       const result = await dummyURLCall('findIssue', ['PK-100']);
-      result.should.eql('http://jira.somehost.com:8080/rest/api/2.0/issue/PK-100');
+      result.should.eql('http://jira.somehost.com:8080/rest/api/2.0/issue/PK-100?expand=');
+    });
+
+    it('findIssue hits proper url with expansion', async () => {
+      const result = await dummyURLCall('findIssue', ['PK-100', 'transitions,changelog']);
+      result.should.eql('http://jira.somehost.com:8080/rest/api/2.0/issue/PK-100?expand=transitions,changelog');
     });
 
     it('getUnresolvedIssueCount hits proper url', async () => {
Repository: jira-node/node-jira-client
Pull request #107 (2016-09-20 16:39:48)

Created `listSprints`
Added `listSprints` to return a list of sprints for a given `rapidViewId`.

Because `getLastSprintForRapidView` states it returns a list of sprints for a given rapidViewId, but does not, I felt the need to update the docs around that fn to be more appropriate.

Also created a test for `listSprints`, kind of a huge learning curve with the test framework, fwiw -- it'd be nice to understand how you've built those a bit better (docs anywhere? &hearts;)

Cheers


Patch:
diff --git a/src/jira.js b/src/jira.js
index a4e73b0..0911f67 100644
--- a/src/jira.js
+++ b/src/jira.js
@@ -269,7 +269,7 @@ export default class JiraApi {
     return rapidViewResult;
   }
 
-  /** Get a list of Sprints belonging to a Rapid View
+  /** Get the most recent sprint for a given rapidViewId
    * @name getLastSprintForRapidView
    * @function
    * @param {string} rapidViewId - the id for the rapid view
@@ -299,6 +299,17 @@ export default class JiraApi {
     })));
   }
 
+  /** Get a list of Sprints belonging to a Rapid View
+   * @name listSprints
+   * @function
+   * @param {string} rapidViewId - the id for the rapid view
+   */
+  listSprints(rapidViewId) {
+    return this.doRequest(this.makeRequestHeader(this.makeSprintQueryUri({
+      pathname: `/sprintquery/${rapidViewId}`,
+    })));
+  }
+
   /** Add an issue to the project's current sprint
    * @name addIssueToSprint
    * @function


Test patch:
diff --git a/test/jira-tests.js b/test/jira-tests.js
index d649783..2d58eb8 100644
--- a/test/jira-tests.js
+++ b/test/jira-tests.js
@@ -380,6 +380,13 @@ describe('Jira API Tests', () => {
         .eql('http://jira.somehost.com:8080/rest/greenhopper/1.0/rapid/charts/sprintreport?rapidViewId=someRapidView&sprintId=someSprintId');
     });
 
+    it('listSprints hits proper url', async () => {
+      const result = await dummyURLCall('listSprints', ['someRapidViewId']);
+      result.should.eql(
+        'http://jira.somehost.com:8080/rest/greenhopper/1.0/sprintquery/someRapidViewId'
+      );
+    });
+
     it('addIssueToSprint hits proper url', async () => {
       const result = await dummyURLCall('addIssueToSprint', ['someIssueId', 'someSprintId']);
       result.should.eql('http://jira.somehost.com:8080/rest/api/2.0/sprint/someSprintId/issues/add');
Repository: jira-node/node-jira-client
Pull request #130 (2016-11-16 22:54:21)

adding createUser
The jira api docs call it experimental, but it seems to work fine.  


Patch:
diff --git a/src/jira.js b/src/jira.js
index 869ecd7..4bbe2fc 100644
--- a/src/jira.js
+++ b/src/jira.js
@@ -463,6 +463,22 @@ export default class JiraApi {
     }));
   }
 
+  /** Create a Jira user
+   * [Jira Doc](https://docs.atlassian.com/jira/REST/cloud/#api/2/user-createUser)
+   * @name createUser
+   * @function
+   * @param {object} user - Properly Formatted User object
+   */
+  createUser(user) {
+    return this.doRequest(this.makeRequestHeader(this.makeUri({
+      pathname: '/user',
+    }), {
+      method: 'POST',
+      followAllRedirects: true,
+      body: user,
+    }));
+  }
+
   /** Search user on Jira
    * [Jira Doc](http://docs.atlassian.com/jira/REST/latest/#d2e3756)
    * @name searchUsers


Test patch:
diff --git a/test/jira-tests.js b/test/jira-tests.js
index 2d58eb8..15e393d 100644
--- a/test/jira-tests.js
+++ b/test/jira-tests.js
@@ -436,6 +436,15 @@ describe('Jira API Tests', () => {
       result.should.eql('http://jira.somehost.com:8080/rest/api/2.0/search');
     });
 
+    it('createUser hits proper url', async () => {
+      const result = await dummyURLCall('createUser', [{
+        name: 'someUsername',
+        emailAddress: 'someEmail',
+        displayName: 'Some Name',
+      }]);
+      result.should.eql('http://jira.somehost.com:8080/rest/api/2.0/user');
+    });
+
     it('searchUsers hits proper url', async () => {
       const result = await dummyURLCall('searchUsers', [{
         username: 'someUserName',
Repository: jira-node/node-jira-client
Pull request #165 (2017-04-15 18:01:18)

Add updateComment method
Hello!

I added the [`updateComment`](https://docs.atlassian.com/jira/REST/cloud/#api/2/issue-updateComment) method implementation.


Patch:
diff --git a/src/jira.js b/src/jira.js
index 92de843..4feca95 100644
--- a/src/jira.js
+++ b/src/jira.js
@@ -861,6 +861,28 @@ export default class JiraApi {
     }));
   }
 
+  /** Update comment for an issue
+   * [Jira Doc](https://docs.atlassian.com/jira/REST/cloud/#api/2/issue-updateComment)
+   * @name updateComment
+   * @function
+   * @param {string} issueId - Issue with the comment
+   * @param {string} commentId - Comment that is updated
+   * @param {string} comment - string containing new comment
+   * @param {object} [options={}] - extra options
+   */
+  updateComment(issueId, commentId, comment, options = {}) {
+    return this.doRequest(this.makeRequestHeader(this.makeUri({
+      pathname: `/issue/${issueId}/comment/${commentId}`,
+    }), {
+      body: {
+        body: comment,
+        ...options,
+      },
+      method: 'PUT',
+      followAllRedirects: true,
+    }));
+  }
+
   /** Add a worklog to a project
    * [Jira Doc](http://docs.atlassian.com/jira/REST/latest/#id291617)
    * @name addWorklog


Test patch:
diff --git a/test/jira-tests.js b/test/jira-tests.js
index 2a9c744..ed287b2 100644
--- a/test/jira-tests.js
+++ b/test/jira-tests.js
@@ -608,6 +608,11 @@ describe('Jira API Tests', () => {
       result.should.eql('http://jira.somehost.com:8080/rest/api/2.0/issue/someIssueNumber/comment');
     });
 
+    it('updateComment hits proper url', async () => {
+      const result = await dummyURLCall('updateComment', ['someIssueNumber', 'someCommentNumber', 'someComment']);
+      result.should.eql('http://jira.somehost.com:8080/rest/api/2.0/issue/someIssueNumber/comment/someCommentNumber');
+    });
+
     it('addWorklog hits proper url', async () => {
       const result = await dummyURLCall('addWorklog', [
         'someIssueNumber',