This repository was archived by the owner on Aug 31, 2024. It is now read-only.
File tree 4 files changed +13
-19
lines changed
4 files changed +13
-19
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"extends": [
3
- "jongleberry "
3
+ "standard "
4
4
],
5
5
"rules": {
6
- // node v0.10+
7
- "object-shorthand": 0,
8
- "no-var": 0,
9
- "prefer-arrow-callback": 0,
6
+
10
7
}
11
8
}
Original file line number Diff line number Diff line change 5
5
6
6
node_modules
7
7
coverage
8
- cache
Original file line number Diff line number Diff line change 22
22
"spdy" : " ^1.32.4"
23
23
},
24
24
"devDependencies" : {
25
- "babel-eslint" : " next " ,
25
+ "babel-eslint" : " ^7.1.1 " ,
26
26
"bluebird" : " ^3.3.1" ,
27
- "eslint" : " ^2.1.0" ,
28
- "eslint-config-jongleberry" : " ^1.3.1" ,
29
- "eslint-config-standard-jsx" : " ^1.1.1" ,
30
- "eslint-plugin-promise" : " ^1.0.8" ,
31
- "eslint-plugin-react" : " ^3.16.1" ,
32
- "eslint-plugin-standard" : " ^1.3.2" ,
27
+ "eslint" : " ^3.12.2" ,
28
+ "eslint-config-standard" : " ^6.2.1" ,
29
+ "eslint-plugin-promise" : " ^3.4.0" ,
30
+ "eslint-plugin-standard" : " ^2.0.1" ,
33
31
"istanbul" : " ^0.4.2" ,
34
- "mocha" : " ^2.0 .0" ,
32
+ "mocha" : " ^3.2 .0" ,
35
33
"raw-body" : " ^1.0.0" ,
36
34
"spdy" : " ^1.0.0" ,
37
35
"spdy-keys" : " ^0.0.0"
38
36
},
39
37
"scripts" : {
40
- "lint" : " eslint lib test " ,
38
+ "lint" : " eslint . --fix " ,
41
39
"test" : " mocha" ,
42
40
"test-cov" : " istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot" ,
43
41
"test-travis" : " istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter dot"
Original file line number Diff line number Diff line change @@ -152,7 +152,7 @@ describe('Buffers', function () {
152
152
threshold : 1 ,
153
153
headers : {
154
154
'content-encoding' : 'gzip' ,
155
- 'content-type' : 'text/plain' ,
155
+ 'content-type' : 'text/plain'
156
156
} ,
157
157
body : body
158
158
} )
@@ -190,7 +190,7 @@ describe('Compression', function () {
190
190
return listen ( function ( req , res ) {
191
191
return SPDY ( res ) . push ( {
192
192
path : '/something.txt' ,
193
- body : 'lol' ,
193
+ body : 'lol'
194
194
} )
195
195
} ) . then ( pull ) . then ( function ( res ) {
196
196
assert ( ! res . headers [ 'content-encoding' ] )
@@ -275,15 +275,15 @@ function pull () {
275
275
return new Promise ( function ( resolve , reject ) {
276
276
agent = spdy . createAgent ( {
277
277
port : port ,
278
- rejectUnauthorized : false ,
278
+ rejectUnauthorized : false
279
279
} )
280
280
281
281
agent . once ( 'error' , reject )
282
282
agent . once ( 'push' , resolve )
283
283
284
284
https . request ( {
285
285
agent : agent ,
286
- path : '/' ,
286
+ path : '/'
287
287
} )
288
288
. once ( 'error' , reject )
289
289
. once ( 'response' , function ( res ) {
You can’t perform that action at this time.
0 commit comments