Skip to content

Commit

Permalink
bump deps & use let/const to replace var
Browse files Browse the repository at this point in the history
  • Loading branch information
haoxins committed Jul 4, 2020
1 parent 867c601 commit 8391f93
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,8 @@
"license": "MIT",
"repository": "thenables/timeout-then",
"devDependencies": {
"bluebird": "^3.4.0",
"istanbul": "^0.4.3",
"mocha": "^2.5.3"
"istanbul": "^0.4.5",
"mocha": "^8.0.1"
},
"scripts": {
"test": "mocha --reporter spec",
Expand Down
10 changes: 5 additions & 5 deletions test/test.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@

var assert = require('assert')
const assert = require('assert')

var timeout = require('..')
const timeout = require('..')

it('should wait', function () {
var blah = false
let blah = false

setTimeout(function () {
blah = true
Expand All @@ -16,9 +16,9 @@ it('should wait', function () {
})

it('should clear', function (done) {
var blah = true
let blah = true

var timer = timeout(5)
let timer = timeout(5)
timer.then(function () {
blah = false
})
Expand Down

0 comments on commit 8391f93

Please sign in to comment.