Skip to content

Commit 20496e5

Browse files
use const
1 parent b443622 commit 20496e5

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

test/downloader_test.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
var downloader = require('./../build/downloader');
2-
var assert = require('assert');
3-
var os = require('os');
4-
var path = require('path');
1+
const downloader = require('./../build/downloader');
2+
const assert = require('assert');
3+
const os = require('os');
4+
const path = require('path');
55

66
describe('Downloader', function() {
77
it('should download a file correctly', function(done) {
8-
var destinationPath = path.join(os.tmpdir(), "test_" + Math.round(Math.random()*10000));
8+
const destinationPath = path.join(os.tmpdir(), "test_" + Math.round(Math.random()*10000));
99
downloader.get('https://testingbot.com/assets/about.png', { destination: destinationPath }, function(err, downloadedFilePath) {
1010
assert.equal(err, null);
1111
assert.equal(downloadedFilePath, destinationPath);
@@ -14,7 +14,7 @@ describe('Downloader', function() {
1414
});
1515

1616
it('should return an error when a download fails (bad http code)', function(done) {
17-
var destinationPath = path.join(os.tmpdir(), "test_" + Math.round(Math.random()*10000));
17+
const destinationPath = path.join(os.tmpdir(), "test_" + Math.round(Math.random()*10000));
1818
downloader.get('https://testingbot.com/assets/this_does_not_exist.png', { destination: destinationPath }, function(err, downloadedFilePath) {
1919
assert.notEqual(err, null);
2020
assert.equal(downloadedFilePath, null);

test/tunnel-launcher_test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
var tunnelLauncher = require('./../build/tunnel-launcher');
2-
var assert = require('assert');
1+
const tunnelLauncher = require('./../build/tunnel-launcher');
2+
const assert = require('assert');
33

44
describe('Java Version Check', function() {
55
describe('checkJava', function() {

0 commit comments

Comments
 (0)