Skip to content

Commit 7cb0843

Browse files
committed
removed typo in a test-envvar, removed a trailing semicolon
1 parent 0fd401c commit 7cb0843

3 files changed

Lines changed: 8 additions & 8 deletions

File tree

_src/lib/node_cache.coffee

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,7 @@ module.exports = class NodeCache extends EventEmitter
498498
#console.log data.t < Date.now(), data.t, Date.now()
499499
if data.t isnt 0 and data.t < Date.now()
500500
if @options.deleteOnExpire
501-
_retval = false;
501+
_retval = false
502502
@del( key )
503503
@emit( "expired", key, @_unwrap(data) )
504504

_src/test/mocha_test.coffee

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ describe "`#{pkg.name}@#{pkg.version}` on `node@#{process.version}`", () ->
358358
done()
359359
return
360360
else
361-
if not process.env.SILIENT_MODE?
361+
if not process.env.SILENT_MODE?
362362
console.log "No Promises available in this node version (#{process.version})"
363363
this.skip()
364364
return
@@ -390,14 +390,14 @@ describe "`#{pkg.name}@#{pkg.version}` on `node@#{process.version}`", () ->
390390
callStub()
391391
return
392392
else
393-
if not process.env.SILIENT_MODE?
393+
if not process.env.SILENT_MODE?
394394
console.log "No Promises available in this node version (#{process.version})"
395395
this.skip()
396396
return
397397

398398
it "test es6 map", () ->
399399
unless Map?
400-
if not process.env.SILIENT_MODE?
400+
if not process.env.SILENT_MODE?
401401
console.log "No Maps available in this node version (#{process.version})"
402402
this.skip()
403403
return
@@ -927,7 +927,7 @@ describe "`#{pkg.name}@#{pkg.version}` on `node@#{process.version}`", () ->
927927
for key in state.keys
928928
should(localCache.set key, state.val, 0).be.ok()
929929
duration = Date.now() - start
930-
if not process.env.SILIENT_MODE?
930+
if not process.env.SILENT_MODE?
931931
console.log "\tSET: #{state.count} keys to: `#{state.val}` #{duration}ms (#{duration/state.count}ms per item)"
932932
else
933933
BENCH[ "SET" ] = 1/(( duration/1000 )/state.count)
@@ -941,7 +941,7 @@ describe "`#{pkg.name}@#{pkg.version}` on `node@#{process.version}`", () ->
941941
state.n++
942942
state.val.should.eql localCache.get(key)
943943
duration = Date.now() - start
944-
if not process.env.SILIENT_MODE?
944+
if not process.env.SILENT_MODE?
945945
console.log "\tGET: #{state.count} keys #{duration}ms (#{duration/state.count}ms per item)"
946946
else
947947
BENCH[ "GET" ] = 1/(( duration/1000 )/state.count)
@@ -957,7 +957,7 @@ describe "`#{pkg.name}@#{pkg.version}` on `node@#{process.version}`", () ->
957957
return
958958

959959
after () ->
960-
if not process.env.SILIENT_MODE?
960+
if not process.env.SILENT_MODE?
961961
console.log "\tBenchmark stats:"
962962
console.log stringify(localCache.getStats(), null, "\t")
963963
return

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
},
5353
"scripts": {
5454
"test": "COFFEECOV_INIT_ALL=false mocha --compilers coffee:coffee-script/register --require coffee-coverage/register-istanbul _src/test/mocha_test.coffee -R spec && tsc",
55-
"test-docker": "SILIENT_MODE=1 mocha test/mocha_test.js -R min && tsc",
55+
"test-docker": "SILENT_MODE=1 mocha test/mocha_test.js -R min && tsc",
5656
"build": "grunt build"
5757
},
5858
"dependencies": {

0 commit comments

Comments
 (0)