@@ -3,8 +3,8 @@ import { ServerClient } from '../../src';
3
3
import test from 'ava' ;
4
4
5
5
const config = {
6
- host : 'https://localhost' ,
7
- } ;
6
+ host : 'https://localhost' ,
7
+ } ;
8
8
9
9
test ( 'should create correct url' , t => {
10
10
const serverClient = new ServerClient ( config ) ;
@@ -30,11 +30,11 @@ test('should send the correct headers when creating attachments', t => {
30
30
id : '1234567' ,
31
31
comment : 'testing' ,
32
32
file : buffer ,
33
- } )
33
+ } ) ;
34
34
35
35
const callArgument = stub . getCall ( 0 ) . args [ 0 ] ;
36
36
37
- t . is ( callArgument . url , '/rest/api/content/1234567/child/attachment' )
37
+ t . is ( callArgument . url , '/rest/api/content/1234567/child/attachment' ) ;
38
38
t . deepEqual ( callArgument . headers , {
39
39
'Content-Type' : 'multipart/form-data' ,
40
40
'X-Atlassian-Token' : 'nocheck' ,
@@ -52,13 +52,13 @@ test('should send the correct headers when updating attachments', t => {
52
52
attachmentId : '89101112' ,
53
53
comment : 'testing' ,
54
54
file : buffer ,
55
- } )
55
+ } ) ;
56
56
57
57
const callArgument = stub . getCall ( 0 ) . args [ 0 ] ;
58
58
59
- t . is ( callArgument . url , '/rest/api/content/1234567/child/attachment/89101112/data' )
59
+ t . is ( callArgument . url , '/rest/api/content/1234567/child/attachment/89101112/data' ) ;
60
60
t . deepEqual ( callArgument . headers , {
61
61
'Content-Type' : 'multipart/form-data' ,
62
62
'X-Atlassian-Token' : 'nocheck' ,
63
63
} ) ;
64
- } )
64
+ } ) ;
0 commit comments