mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-29 13:53:40 -05:00
change copy test to match usage in web, check http status
This commit is contained in:
parent
dad209262f
commit
de465aee94
1 changed files with 4 additions and 2 deletions
|
@ -71,12 +71,14 @@ describe "Filestore", ->
|
|||
newFileId = Math.random()
|
||||
newFileUrl = "#{@filestoreUrl}/project/#{newProjectID}/file/#{newFileId}"
|
||||
opts =
|
||||
method: 'put'
|
||||
uri: newFileUrl
|
||||
json:
|
||||
source:
|
||||
project_id:"acceptence_tests"
|
||||
file_id: @file_id
|
||||
request.put opts, (err)=>
|
||||
request opts, (err, response, body)=>
|
||||
response.statusCode.should.equal 200
|
||||
request.del @fileUrl, (err, response, body)=>
|
||||
request.get newFileUrl, (err, response, body)=>
|
||||
body.should.equal @constantFileContent
|
||||
|
|
Loading…
Reference in a new issue