File tree 6 files changed +59
-5
lines changed 6 files changed +59
-5
lines changed Original file line number Diff line number Diff line change 1
1
# Jira.js changelog
2
2
3
+ ### 2.0.6
4
+
5
+ - searchForIssuesUsingJql request fixed
6
+
3
7
### 2.0.5
4
8
5
9
- addAttachment fixed for browsers
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " jira.js" ,
3
- "version" : " 2.0.5 " ,
3
+ "version" : " 2.0.6 " ,
4
4
"main" : " out/index.js" ,
5
5
"types" : " out/index.d.ts" ,
6
6
"repository" : " https://github.com/MrRefactoring/jira.js.git" ,
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ export class BaseClient implements Client {
17
17
constructor ( protected readonly config : Config ) {
18
18
this . telemetryClient = new TelemetryClient ( config . telemetry ) ;
19
19
this . instance = axios . create ( {
20
- paramsSerializer : this . paramSerializer ,
20
+ paramsSerializer : this . paramSerializer . bind ( this ) ,
21
21
...config . baseRequestConfig ,
22
22
baseURL : config . host ,
23
23
headers : this . removeUndefinedProperties ( {
@@ -84,8 +84,8 @@ export class BaseClient implements Client {
84
84
bodyExists : ! ! requestConfig . data ,
85
85
callbackUsed : ! ! callback ,
86
86
headersExists : ! ! requestConfig . headers ,
87
- libVersion : '2.0.5 ' ,
88
- libVersionHash : 'b559db93c279b7e4886705cb45f7ca9c ' ,
87
+ libVersion : '2.0.6 ' ,
88
+ libVersionHash : '001a249da602f82e2d14784bf74be8fa ' ,
89
89
methodName : telemetryData ?. methodName || 'sendRequest' ,
90
90
onErrorMiddlewareUsed : ! ! this . config . middlewares ?. onError ,
91
91
onResponseMiddlewareUsed : ! ! this . config . middlewares ?. onResponse ,
Original file line number Diff line number Diff line change
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
+ } ) ;
Original file line number Diff line number Diff line change
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
+ } ) ;
You can’t perform that action at this time.
0 commit comments