Skip to content

Commit 119dd30

Browse files
2.0.6 (#112)
1 parent b07f39f commit 119dd30

File tree

6 files changed

+59
-5
lines changed

6 files changed

+59
-5
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Jira.js changelog
22

3+
### 2.0.6
4+
5+
- searchForIssuesUsingJql request fixed
6+
37
### 2.0.5
48

59
- addAttachment fixed for browsers

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "jira.js",
3-
"version": "2.0.5",
3+
"version": "2.0.6",
44
"main": "out/index.js",
55
"types": "out/index.d.ts",
66
"repository": "https://github.com/MrRefactoring/jira.js.git",

src/clients/baseClient.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export class BaseClient implements Client {
1717
constructor(protected readonly config: Config) {
1818
this.telemetryClient = new TelemetryClient(config.telemetry);
1919
this.instance = axios.create({
20-
paramsSerializer: this.paramSerializer,
20+
paramsSerializer: this.paramSerializer.bind(this),
2121
...config.baseRequestConfig,
2222
baseURL: config.host,
2323
headers: this.removeUndefinedProperties({
@@ -84,8 +84,8 @@ export class BaseClient implements Client {
8484
bodyExists: !!requestConfig.data,
8585
callbackUsed: !!callback,
8686
headersExists: !!requestConfig.headers,
87-
libVersion: '2.0.5',
88-
libVersionHash: 'b559db93c279b7e4886705cb45f7ca9c',
87+
libVersion: '2.0.6',
88+
libVersionHash: '001a249da602f82e2d14784bf74be8fa',
8989
methodName: telemetryData?.methodName || 'sendRequest',
9090
onErrorMiddlewareUsed: !!this.config.middlewares?.onError,
9191
onResponseMiddlewareUsed: !!this.config.middlewares?.onResponse,
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
import { prepareEnvironment } from '../utils/prepareEnvironment';
2+
import { cleanupEnvironment } from '../utils/cleanupEnvironment';
3+
import { getVersion2Client } from '../utils/getClient';
4+
5+
describe('System tests. IssueSearch', () => {
6+
beforeAll(async () => {
7+
await prepareEnvironment();
8+
});
9+
10+
afterAll(async () => {
11+
await cleanupEnvironment();
12+
});
13+
14+
it('searchForIssuesUsingJql should correctly calls', async () => {
15+
const client = getVersion2Client({ noCheckAtlassianToken: true });
16+
17+
const issues = await client.issueSearch.searchForIssuesUsingJql({
18+
jql: 'assignee=currentuser()',
19+
});
20+
21+
expect(issues.startAt).toBe(0);
22+
expect(issues.maxResults).toBe(50);
23+
expect(issues.issues).toEqual([]);
24+
});
25+
});
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
import { prepareEnvironment } from '../utils/prepareEnvironment';
2+
import { cleanupEnvironment } from '../utils/cleanupEnvironment';
3+
import { getVersion3Client } from '../utils/getClient';
4+
5+
describe('System tests. IssueSearch', () => {
6+
beforeAll(async () => {
7+
await prepareEnvironment();
8+
});
9+
10+
afterAll(async () => {
11+
await cleanupEnvironment();
12+
});
13+
14+
it('searchForIssuesUsingJql should correctly calls', async () => {
15+
const client = getVersion3Client({ noCheckAtlassianToken: true });
16+
17+
const issues = await client.issueSearch.searchForIssuesUsingJql({
18+
jql: 'assignee=currentuser()',
19+
});
20+
21+
expect(issues.startAt).toBe(0);
22+
expect(issues.maxResults).toBe(50);
23+
expect(issues.issues).toEqual([]);
24+
});
25+
});

0 commit comments

Comments
 (0)