Skip to content

Commit

Permalink
refactor: Use const instead of var
Browse files Browse the repository at this point in the history
  • Loading branch information
q2s2t committed Aug 25, 2018
1 parent 3238679 commit 41ccdac
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/util/switches.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ describe('Utility: `switches`', function () {
})

it('should return non default booleans when specified', function () {
var r = toChildProcessArgs({
const r = toChildProcessArgs({
so: true,
spl: true,
ssw: true,
Expand All @@ -56,7 +56,7 @@ describe('Utility: `switches`', function () {
})

it('should return complex values when needed', function () {
var r = toChildProcessArgs({
const r = toChildProcessArgs({
ssc: true,
ssw: true,
m: 'x0'
Expand All @@ -68,7 +68,7 @@ describe('Utility: `switches`', function () {
})

it('should return complex values with spaces and quotes', function () {
var r = toChildProcessArgs({
const r = toChildProcessArgs({
ssc: true,
ssw: true,
m0: '=BCJ',
Expand All @@ -84,7 +84,7 @@ describe('Utility: `switches`', function () {
})

it('should works with the `raw` switch', function () {
var r = toChildProcessArgs({
const r = toChildProcessArgs({
raw: ['-i!*.jpg', '-i!*.png', '-r0']
})
expect(r).to.contain('-i!*.jpg')
Expand All @@ -93,7 +93,7 @@ describe('Utility: `switches`', function () {
})

it('should add wildcards', function () {
var r = toChildProcessArgs({
const r = toChildProcessArgs({
wildcards: ['*.jpg', '*.png']
})
expect(r).to.contain('*.jpg')
Expand Down

0 comments on commit 41ccdac

Please sign in to comment.