Skip to content

Commit eb7028f

Browse files
committed
Test names
1 parent 84cc9a8 commit eb7028f

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

test/okhttptest.js

+18-18
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const assert = require('assert');
1919
const CachePolicy = require('..');
2020

2121
describe('okhttp tests', function() {
22-
it('responseCachingByResponseCode', function() {
22+
it('response caching by response code', function() {
2323
// Test each documented HTTP/1.1 code, plus the first unused value in each range.
2424
// http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html
2525

@@ -102,7 +102,7 @@ describe('okhttp tests', function() {
102102
assert.equal(shouldPut, cache.storable());
103103
}
104104

105-
it('defaultExpirationDateFullyCachedForLessThan24Hours', function() {
105+
it('default expiration date fully cached for less than24 hours', function() {
106106
// last modified: 105 seconds ago
107107
// served: 5 seconds ago
108108
// default lifetime: (105 - 5) / 10 = 10 seconds
@@ -122,7 +122,7 @@ describe('okhttp tests', function() {
122122
assert(cache.timeToLive() > 4000);
123123
});
124124

125-
it('defaultExpirationDateFullyCachedForMoreThan24Hours', function() {
125+
it('default expiration date fully cached for more than24 hours', function() {
126126
// last modified: 105 days ago
127127
// served: 5 days ago
128128
// default lifetime: (105 - 5) / 10 = 10 days
@@ -143,7 +143,7 @@ describe('okhttp tests', function() {
143143
assert(cache.timeToLive() + 1000 >= 5 * 3600 * 24);
144144
});
145145

146-
it('maxAgeInThePastWithDateHeaderButNoLastModifiedHeader', function() {
146+
it('max age in the past with date header but no last modified header', function() {
147147
// Chrome interprets max-age relative to the local clock. Both our cache
148148
// and Firefox both use the earlier of the local and server's clock.
149149
const cache = new CachePolicy(
@@ -160,7 +160,7 @@ describe('okhttp tests', function() {
160160
assert(cache.stale());
161161
});
162162

163-
it('maxAgePreferredOverLowerSharedMaxAge', function() {
163+
it('max age preferred over lower shared max age', function() {
164164
const cache = new CachePolicy(
165165
{ headers: {} },
166166
{
@@ -175,7 +175,7 @@ describe('okhttp tests', function() {
175175
assert.equal(cache.maxAge(), 180);
176176
});
177177

178-
it('maxAgePreferredOverHigherMaxAge', function() {
178+
it('max age preferred over higher max age', function() {
179179
const cache = new CachePolicy(
180180
{ headers: {} },
181181
{
@@ -190,19 +190,19 @@ describe('okhttp tests', function() {
190190
assert(cache.stale());
191191
});
192192

193-
it('requestMethodOptionsIsNotCached', function() {
193+
it('request method options is not cached', function() {
194194
testRequestMethodNotCached('OPTIONS');
195195
});
196196

197-
it('requestMethodPutIsNotCached', function() {
197+
it('request method put is not cached', function() {
198198
testRequestMethodNotCached('PUT');
199199
});
200200

201-
it('requestMethodDeleteIsNotCached', function() {
201+
it('request method delete is not cached', function() {
202202
testRequestMethodNotCached('DELETE');
203203
});
204204

205-
it('requestMethodTraceIsNotCached', function() {
205+
it('request method trace is not cached', function() {
206206
testRequestMethodNotCached('TRACE');
207207
});
208208

@@ -222,7 +222,7 @@ describe('okhttp tests', function() {
222222
assert(cache.stale());
223223
}
224224

225-
it('etagAndExpirationDateInTheFuture', function() {
225+
it('etag and expiration date in the future', function() {
226226
const cache = new CachePolicy(
227227
{ headers: {} },
228228
{
@@ -238,7 +238,7 @@ describe('okhttp tests', function() {
238238
assert(cache.timeToLive() > 0);
239239
});
240240

241-
it('clientSideNoStore', function() {
241+
it('client side no store', function() {
242242
const cache = new CachePolicy(
243243
{
244244
headers: {
@@ -256,7 +256,7 @@ describe('okhttp tests', function() {
256256
assert(!cache.storable());
257257
});
258258

259-
it('requestMaxAge', function() {
259+
it('request max age', function() {
260260
const cache = new CachePolicy(
261261
{ headers: {} },
262262
{
@@ -289,7 +289,7 @@ describe('okhttp tests', function() {
289289
);
290290
});
291291

292-
it('requestMinFresh', function() {
292+
it('request min fresh', function() {
293293
const cache = new CachePolicy(
294294
{ headers: {} },
295295
{
@@ -319,7 +319,7 @@ describe('okhttp tests', function() {
319319
);
320320
});
321321

322-
it('requestMaxStale', function() {
322+
it('request max stale', function() {
323323
const cache = new CachePolicy(
324324
{ headers: {} },
325325
{
@@ -358,7 +358,7 @@ describe('okhttp tests', function() {
358358
);
359359
});
360360

361-
it('requestMaxStaleNotHonoredWithMustRevalidate', function() {
361+
it('request max stale not honored with must revalidate', function() {
362362
const cache = new CachePolicy(
363363
{ headers: {} },
364364
{
@@ -389,7 +389,7 @@ describe('okhttp tests', function() {
389389
);
390390
});
391391

392-
it('getHeadersDeletesCached100LevelWarnings', function() {
392+
it('get headers deletes cached100 level warnings', function() {
393393
const cache = new CachePolicy(
394394
{ headers: {} },
395395
{
@@ -402,7 +402,7 @@ describe('okhttp tests', function() {
402402
assert.equal('200 ok ok', cache.responseHeaders().warning);
403403
});
404404

405-
it('doNotCachePartialResponse', function() {
405+
it('do not cache partial response', function() {
406406
const cache = new CachePolicy(
407407
{ headers: {} },
408408
{

0 commit comments

Comments
 (0)