Skip to content

Commit

Permalink
Fix all test/ files with ESLint rules with 0 errors and 0 warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
gunta committed Jan 19, 2016
1 parent 434f63b commit b2217d0
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 13 deletions.
8 changes: 8 additions & 0 deletions test/.eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"env": {
"mocha": true
},
"rules": {
"no-unused-expressions": 0
}
}
6 changes: 1 addition & 5 deletions test/util/keyutil.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,10 @@ var expect = chai.expect
var keyutil = require('../../lib/util/keyutil')

describe('keyutil', function() {

describe('parseKeyCharacterMap', function() {

it('should be able to parse Virtual.kcm', function(done) {
var expected = require('../fixt/Virtual.kcm.json')
, source = path.join(__dirname, '..', 'fixt', 'Virtual.kcm')
var source = path.join(__dirname, '..', 'fixt', 'Virtual.kcm')

keyutil.parseKeyCharacterMap(fs.createReadStream(source))
.then(function(keymap) {
Expand All @@ -21,7 +19,5 @@ describe('keyutil', function() {
})
.catch(done)
})

})

})
2 changes: 0 additions & 2 deletions test/util/logger.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,11 @@ var expect = chai.expect
var logger = require('../../lib/util/logger')

describe('Logger', function() {

it('should have a createLogger method', function() {
expect(logger).itself.to.respondTo('createLogger')
})

it('should have a setGlobalIdentifier method', function() {
expect(logger).itself.to.respondTo('setGlobalIdentifier')
})

})
6 changes: 0 additions & 6 deletions test/util/ttlset.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ chai.use(require('sinon-chai'))
var TtlSet = require('../../lib/util/ttlset')

describe('TtlSet', function() {

it('should emit "drop" for entries with expired TTL', function(done) {
var ttlset = new TtlSet(50)

Expand All @@ -30,7 +29,6 @@ describe('TtlSet', function() {
})

describe('bump', function() {

it('should emit "insert" for new entries', function(done) {
var ttlset = new TtlSet(50)

Expand Down Expand Up @@ -126,11 +124,9 @@ describe('TtlSet', function() {
expect(ttlset.tail.prev).to.equal(ttlset.head)
done()
})

})

describe('drop', function() {

it('should emit "drop" for the dropped entry', function(done) {
var ttlset = new TtlSet(50)

Expand Down Expand Up @@ -193,7 +189,5 @@ describe('TtlSet', function() {
expect(ttlset.tail.value).to.equal(2)
done()
})

})

})

0 comments on commit b2217d0

Please sign in to comment.