migrate from underscore to lodash

This commit is contained in:
Brian Gough
2020-06-15 09:52:21 +01:00
parent 19690e7847
commit 9b92793b89
9 changed files with 10 additions and 18 deletions

View File

@@ -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

View File

@@ -70,7 +70,8 @@ describe('DockerRunner', function() {
return runner(callback)
}
}
}
},
globals: { Math } // used by lodash
})
this.Docker = Docker
this.getContainer = Docker.prototype.getContainer

View File

@@ -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())