even more constness

This commit is contained in:
Girish Ramakrishnan
2022-04-14 20:30:00 -05:00
parent 01ce251596
commit 185d5d66ad
9 changed files with 35 additions and 34 deletions
+2 -2
View File
@@ -316,10 +316,10 @@ describe('Cloudron API', function () {
// superagent doesn't work. maybe https://github.com/visionmedia/superagent/issues/420
const req = http.get(options, function (res) {
var data = '';
let data = '';
res.on('data', function (d) { data += d.toString('utf8'); });
setTimeout(function checkData() {
var dataMessageFound = false;
let dataMessageFound = false;
expect(data.length).to.not.be(0);
data.split('\n').forEach(function (line) {