@@ -80,7 +80,7 @@ describe('Signer.toObject()' , function functionName() {
80
80
81
81
describe ( 'Document' , function functionName ( ) {
82
82
83
- it . skip ( "should get created without a problem" , function ( done ) {
83
+ it ( "should get created without a problem" , function ( done ) {
84
84
var document = new Document ( ) ;
85
85
document . setDocumentHash ( "My Document" ) ;
86
86
document . setTitle ( "Title goes here" ) ;
@@ -98,6 +98,12 @@ describe('Document' , function functionName() {
98
98
signer . setEmail ( '[email protected] ' )
99
99
document . appendSigner ( signer . toObject ( ) ) ;
100
100
101
+ var file = new File ( {
102
+ name : 'My File' ,
103
+ filePath : path . join ( __dirname , 'raw.pdf' ) ,
104
+ } ) ;
105
+ document . appendFile ( file ) ;
106
+
101
107
var client = new Client ( key , businessId ) ;
102
108
client
103
109
. createDocument ( document )
@@ -108,7 +114,7 @@ describe('Document' , function functionName() {
108
114
. catch ( done ) ;
109
115
} ) ;
110
116
111
- it . skip ( "should upload a file without a problem" , function ( done ) {
117
+ it ( "should upload a file without a problem" , function ( done ) {
112
118
var document = new Document ( ) ;
113
119
document . setDocumentHash ( "My Document" ) ;
114
120
document . setTitle ( "Title goes here" ) ;
@@ -150,7 +156,7 @@ describe('Document' , function functionName() {
150
156
151
157
var file = new File ( {
152
158
name : 'My File' ,
153
- fileBase64 : fs . readFileSync ( " raw.pdf") . toString ( "base64" ) ,
159
+ fileBase64 : fs . readFileSync ( __dirname + "/ raw.pdf") . toString ( "base64" ) ,
154
160
} ) ;
155
161
document . appendFile ( file ) ;
156
162
0 commit comments