migrate from underscore to lodash
This commit is contained in:
@@ -13,7 +13,7 @@ const request = require('request')
|
||||
const Settings = require('settings-sharelatex')
|
||||
const async = require('async')
|
||||
const fs = require('fs')
|
||||
const _ = require('underscore')
|
||||
const _ = require('lodash')
|
||||
const concurentCompiles = 5
|
||||
const totalCompiles = 50
|
||||
|
||||
|
||||
@@ -70,7 +70,8 @@ describe('DockerRunner', function() {
|
||||
return runner(callback)
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
globals: { Math } // used by lodash
|
||||
})
|
||||
this.Docker = Docker
|
||||
this.getContainer = Docker.prototype.getContainer
|
||||
|
||||
@@ -30,7 +30,8 @@ describe('OutputFileOptimiser', function() {
|
||||
child_process: { spawn: (this.spawn = sinon.stub()) },
|
||||
'logger-sharelatex': { log: sinon.stub(), warn: sinon.stub() },
|
||||
'./Metrics': {}
|
||||
}
|
||||
},
|
||||
globals: { Math } // used by lodash
|
||||
})
|
||||
this.directory = '/test/dir'
|
||||
return (this.callback = sinon.stub())
|
||||
|
||||
Reference in New Issue
Block a user