@@ -19,7 +19,7 @@ const assert = require('assert');
19
19
const CachePolicy = require ( '..' ) ;
20
20
21
21
describe ( 'okhttp tests' , function ( ) {
22
- it ( 'responseCachingByResponseCode ' , function ( ) {
22
+ it ( 'response caching by response code ' , function ( ) {
23
23
// Test each documented HTTP/1.1 code, plus the first unused value in each range.
24
24
// http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html
25
25
@@ -102,7 +102,7 @@ describe('okhttp tests', function() {
102
102
assert . equal ( shouldPut , cache . storable ( ) ) ;
103
103
}
104
104
105
- it ( 'defaultExpirationDateFullyCachedForLessThan24Hours ' , function ( ) {
105
+ it ( 'default expiration date fully cached for less than24 hours ' , function ( ) {
106
106
// last modified: 105 seconds ago
107
107
// served: 5 seconds ago
108
108
// default lifetime: (105 - 5) / 10 = 10 seconds
@@ -122,7 +122,7 @@ describe('okhttp tests', function() {
122
122
assert ( cache . timeToLive ( ) > 4000 ) ;
123
123
} ) ;
124
124
125
- it ( 'defaultExpirationDateFullyCachedForMoreThan24Hours ' , function ( ) {
125
+ it ( 'default expiration date fully cached for more than24 hours ' , function ( ) {
126
126
// last modified: 105 days ago
127
127
// served: 5 days ago
128
128
// default lifetime: (105 - 5) / 10 = 10 days
@@ -143,7 +143,7 @@ describe('okhttp tests', function() {
143
143
assert ( cache . timeToLive ( ) + 1000 >= 5 * 3600 * 24 ) ;
144
144
} ) ;
145
145
146
- it ( 'maxAgeInThePastWithDateHeaderButNoLastModifiedHeader ' , function ( ) {
146
+ it ( 'max age in the past with date header but no last modified header ' , function ( ) {
147
147
// Chrome interprets max-age relative to the local clock. Both our cache
148
148
// and Firefox both use the earlier of the local and server's clock.
149
149
const cache = new CachePolicy (
@@ -160,7 +160,7 @@ describe('okhttp tests', function() {
160
160
assert ( cache . stale ( ) ) ;
161
161
} ) ;
162
162
163
- it ( 'maxAgePreferredOverLowerSharedMaxAge ' , function ( ) {
163
+ it ( 'max age preferred over lower shared max age ' , function ( ) {
164
164
const cache = new CachePolicy (
165
165
{ headers : { } } ,
166
166
{
@@ -175,7 +175,7 @@ describe('okhttp tests', function() {
175
175
assert . equal ( cache . maxAge ( ) , 180 ) ;
176
176
} ) ;
177
177
178
- it ( 'maxAgePreferredOverHigherMaxAge ' , function ( ) {
178
+ it ( 'max age preferred over higher max age ' , function ( ) {
179
179
const cache = new CachePolicy (
180
180
{ headers : { } } ,
181
181
{
@@ -190,19 +190,19 @@ describe('okhttp tests', function() {
190
190
assert ( cache . stale ( ) ) ;
191
191
} ) ;
192
192
193
- it ( 'requestMethodOptionsIsNotCached ' , function ( ) {
193
+ it ( 'request method options is not cached ' , function ( ) {
194
194
testRequestMethodNotCached ( 'OPTIONS' ) ;
195
195
} ) ;
196
196
197
- it ( 'requestMethodPutIsNotCached ' , function ( ) {
197
+ it ( 'request method put is not cached ' , function ( ) {
198
198
testRequestMethodNotCached ( 'PUT' ) ;
199
199
} ) ;
200
200
201
- it ( 'requestMethodDeleteIsNotCached ' , function ( ) {
201
+ it ( 'request method delete is not cached ' , function ( ) {
202
202
testRequestMethodNotCached ( 'DELETE' ) ;
203
203
} ) ;
204
204
205
- it ( 'requestMethodTraceIsNotCached ' , function ( ) {
205
+ it ( 'request method trace is not cached ' , function ( ) {
206
206
testRequestMethodNotCached ( 'TRACE' ) ;
207
207
} ) ;
208
208
@@ -222,7 +222,7 @@ describe('okhttp tests', function() {
222
222
assert ( cache . stale ( ) ) ;
223
223
}
224
224
225
- it ( 'etagAndExpirationDateInTheFuture ' , function ( ) {
225
+ it ( 'etag and expiration date in the future ' , function ( ) {
226
226
const cache = new CachePolicy (
227
227
{ headers : { } } ,
228
228
{
@@ -238,7 +238,7 @@ describe('okhttp tests', function() {
238
238
assert ( cache . timeToLive ( ) > 0 ) ;
239
239
} ) ;
240
240
241
- it ( 'clientSideNoStore ' , function ( ) {
241
+ it ( 'client side no store ' , function ( ) {
242
242
const cache = new CachePolicy (
243
243
{
244
244
headers : {
@@ -256,7 +256,7 @@ describe('okhttp tests', function() {
256
256
assert ( ! cache . storable ( ) ) ;
257
257
} ) ;
258
258
259
- it ( 'requestMaxAge ' , function ( ) {
259
+ it ( 'request max age ' , function ( ) {
260
260
const cache = new CachePolicy (
261
261
{ headers : { } } ,
262
262
{
@@ -289,7 +289,7 @@ describe('okhttp tests', function() {
289
289
) ;
290
290
} ) ;
291
291
292
- it ( 'requestMinFresh ' , function ( ) {
292
+ it ( 'request min fresh ' , function ( ) {
293
293
const cache = new CachePolicy (
294
294
{ headers : { } } ,
295
295
{
@@ -319,7 +319,7 @@ describe('okhttp tests', function() {
319
319
) ;
320
320
} ) ;
321
321
322
- it ( 'requestMaxStale ' , function ( ) {
322
+ it ( 'request max stale ' , function ( ) {
323
323
const cache = new CachePolicy (
324
324
{ headers : { } } ,
325
325
{
@@ -358,7 +358,7 @@ describe('okhttp tests', function() {
358
358
) ;
359
359
} ) ;
360
360
361
- it ( 'requestMaxStaleNotHonoredWithMustRevalidate ' , function ( ) {
361
+ it ( 'request max stale not honored with must revalidate ' , function ( ) {
362
362
const cache = new CachePolicy (
363
363
{ headers : { } } ,
364
364
{
@@ -389,7 +389,7 @@ describe('okhttp tests', function() {
389
389
) ;
390
390
} ) ;
391
391
392
- it ( 'getHeadersDeletesCached100LevelWarnings ' , function ( ) {
392
+ it ( 'get headers deletes cached100 level warnings ' , function ( ) {
393
393
const cache = new CachePolicy (
394
394
{ headers : { } } ,
395
395
{
@@ -402,7 +402,7 @@ describe('okhttp tests', function() {
402
402
assert . equal ( '200 ok ok' , cache . responseHeaders ( ) . warning ) ;
403
403
} ) ;
404
404
405
- it ( 'doNotCachePartialResponse ' , function ( ) {
405
+ it ( 'do not cache partial response ' , function ( ) {
406
406
const cache = new CachePolicy (
407
407
{ headers : { } } ,
408
408
{
0 commit comments