fix background flush unit test

This commit is contained in:
Henry Oswald 2019-06-03 10:33:32 +01:00
parent 63f052192e
commit 973a25fc64

View file

@ -93,7 +93,7 @@ describe 'DocumentUpdaterManager', ->
@DocumentUpdaterManager.flushProjectToMongoAndDelete @project_id, @callback
it 'should delete the project from the document updater', ->
url = "#{@settings.apis.documentupdater.url}/project/#{@project_id}"
url = "#{@settings.apis.documentupdater.url}/project/#{@project_id}?background=true"
@request.del.calledWith(url).should.equal true
it "should call the callback with no error", ->