Skip to content

Commit b2217d0

Browse files
committed
Fix all test/ files with ESLint rules with 0 errors and 0 warnings.
1 parent 434f63b commit b2217d0

File tree

4 files changed

+9
-13
lines changed

4 files changed

+9
-13
lines changed

test/.eslintrc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"env": {
3+
"mocha": true
4+
},
5+
"rules": {
6+
"no-unused-expressions": 0
7+
}
8+
}

test/util/keyutil.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,10 @@ var expect = chai.expect
77
var keyutil = require('../../lib/util/keyutil')
88

99
describe('keyutil', function() {
10-
1110
describe('parseKeyCharacterMap', function() {
12-
1311
it('should be able to parse Virtual.kcm', function(done) {
1412
var expected = require('../fixt/Virtual.kcm.json')
15-
, source = path.join(__dirname, '..', 'fixt', 'Virtual.kcm')
13+
var source = path.join(__dirname, '..', 'fixt', 'Virtual.kcm')
1614

1715
keyutil.parseKeyCharacterMap(fs.createReadStream(source))
1816
.then(function(keymap) {
@@ -21,7 +19,5 @@ describe('keyutil', function() {
2119
})
2220
.catch(done)
2321
})
24-
2522
})
26-
2723
})

test/util/logger.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,11 @@ var expect = chai.expect
44
var logger = require('../../lib/util/logger')
55

66
describe('Logger', function() {
7-
87
it('should have a createLogger method', function() {
98
expect(logger).itself.to.respondTo('createLogger')
109
})
1110

1211
it('should have a setGlobalIdentifier method', function() {
1312
expect(logger).itself.to.respondTo('setGlobalIdentifier')
1413
})
15-
1614
})

test/util/ttlset.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ chai.use(require('sinon-chai'))
66
var TtlSet = require('../../lib/util/ttlset')
77

88
describe('TtlSet', function() {
9-
109
it('should emit "drop" for entries with expired TTL', function(done) {
1110
var ttlset = new TtlSet(50)
1211

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

3231
describe('bump', function() {
33-
3432
it('should emit "insert" for new entries', function(done) {
3533
var ttlset = new TtlSet(50)
3634

@@ -126,11 +124,9 @@ describe('TtlSet', function() {
126124
expect(ttlset.tail.prev).to.equal(ttlset.head)
127125
done()
128126
})
129-
130127
})
131128

132129
describe('drop', function() {
133-
134130
it('should emit "drop" for the dropped entry', function(done) {
135131
var ttlset = new TtlSet(50)
136132

@@ -193,7 +189,5 @@ describe('TtlSet', function() {
193189
expect(ttlset.tail.value).to.equal(2)
194190
done()
195191
})
196-
197192
})
198-
199193
})

0 commit comments

Comments
 (0)