File tree 2 files changed +4
-5
lines changed
2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -120,7 +120,7 @@ module.exports = [
120
120
let response = _ . cloneDeep ( newAttachment )
121
121
response = _ . omit ( response , [ 'filePath' , 'deletedAt' ] )
122
122
123
- response . url = resp . data . result . content . preSignedURL
123
+ response . downloadUrl = resp . data . result . content . preSignedURL
124
124
res . status ( 201 ) . json ( util . wrapResponse ( req . id , response ) )
125
125
} )
126
126
. catch ( function ( err ) {
Original file line number Diff line number Diff line change @@ -134,10 +134,9 @@ describe('Project Attachments', () => {
134
134
getSpy . should . have . been . calledOnce
135
135
stub . restore ( )
136
136
console . log ( JSON . stringify ( resJson , null , 2 ) )
137
- // resJson.role.should.equal('customer')
138
- // resJson.isPrimary.should.be.truthy
139
- // resJson.projectId.should.equal(project1.id)
140
- // resJson.userId.should.equal(1)
137
+ resJson . title . should . equal ( 'Spec.pdf' )
138
+ resJson . downloadUrl . should . exist
139
+ resJson . projectId . should . equal ( project1 . id )
141
140
done ( )
142
141
} )
143
142
} )
You can’t perform that action at this time.
0 commit comments