Skip to content

Commit

Permalink
Prefer const over let (#111)
Browse files Browse the repository at this point in the history
  • Loading branch information
LinusU authored and Ahmad Nassri committed Nov 6, 2018
1 parent a19a82d commit d09cc80
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions test/async.js
Expand Up @@ -8,7 +8,7 @@ const valid = require('./fixtures/har/valid')
const validate = require('../lib/async')

tap.test('async', assert => {
let keys = Object.keys(schemas).filter(key => key !== 'default')
const keys = Object.keys(schemas).filter(key => key !== 'default')

assert.plan(keys.length)

Expand All @@ -20,7 +20,7 @@ tap.test('async', assert => {
tap.test('failure', assert => {
assert.plan(4)

let error = new HARError([{ dataPath: '.log.version', message: 'should be string' }])
const error = new HARError([{ dataPath: '.log.version', message: 'should be string' }])

assert.notOk(validate.har({}), 'should fail')

Expand Down
2 changes: 1 addition & 1 deletion test/promise.js
Expand Up @@ -7,7 +7,7 @@ const tap = require('tap')
const validate = require('../lib/promise')

tap.test('promises', assert => {
let keys = Object.keys(schemas).filter((key) => key !== 'default')
const keys = Object.keys(schemas).filter((key) => key !== 'default')

assert.plan((keys.length * 2) + 2)

Expand Down

0 comments on commit d09cc80

Please sign in to comment.