@@ -3,8 +3,8 @@ import { ServerClient } from '../../src';
33import test from 'ava' ;
44
55const config = {
6- host : 'https://localhost' ,
7- } ;
6+ host : 'https://localhost' ,
7+ } ;
88
99test ( 'should create correct url' , t => {
1010 const serverClient = new ServerClient ( config ) ;
@@ -30,11 +30,11 @@ test('should send the correct headers when creating attachments', t => {
3030 id : '1234567' ,
3131 comment : 'testing' ,
3232 file : buffer ,
33- } )
33+ } ) ;
3434
3535 const callArgument = stub . getCall ( 0 ) . args [ 0 ] ;
3636
37- t . is ( callArgument . url , '/rest/api/content/1234567/child/attachment' )
37+ t . is ( callArgument . url , '/rest/api/content/1234567/child/attachment' ) ;
3838 t . deepEqual ( callArgument . headers , {
3939 'Content-Type' : 'multipart/form-data' ,
4040 'X-Atlassian-Token' : 'nocheck' ,
@@ -52,13 +52,13 @@ test('should send the correct headers when updating attachments', t => {
5252 attachmentId : '89101112' ,
5353 comment : 'testing' ,
5454 file : buffer ,
55- } )
55+ } ) ;
5656
5757 const callArgument = stub . getCall ( 0 ) . args [ 0 ] ;
5858
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' ) ;
6060 t . deepEqual ( callArgument . headers , {
6161 'Content-Type' : 'multipart/form-data' ,
6262 'X-Atlassian-Token' : 'nocheck' ,
6363 } ) ;
64- } )
64+ } ) ;
0 commit comments