migrate from underscore to lodash

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

No files matched your search

+1 -1
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
+2 -1
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
+2 -1
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())