diff options
Diffstat (limited to 'deps/npm/node_modules/pacote/node_modules/make-fetch-happen/node_modules/http-cache-semantics/test/misctest.js')
-rw-r--r-- | deps/npm/node_modules/pacote/node_modules/make-fetch-happen/node_modules/http-cache-semantics/test/misctest.js | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/deps/npm/node_modules/pacote/node_modules/make-fetch-happen/node_modules/http-cache-semantics/test/misctest.js b/deps/npm/node_modules/pacote/node_modules/make-fetch-happen/node_modules/http-cache-semantics/test/misctest.js deleted file mode 100644 index 643567d962..0000000000 --- a/deps/npm/node_modules/pacote/node_modules/make-fetch-happen/node_modules/http-cache-semantics/test/misctest.js +++ /dev/null @@ -1,33 +0,0 @@ -'use strict'; - -const assert = require('assert'); -const CachePolicy = require('..'); - - -describe('Other', function() { - it('Thaw wrong object', function() { - assert.throws(() => { - CachePolicy.fromObject({}); - }); - }); - - it('Missing headers', function() { - assert.throws(() => { - new CachePolicy({}); - }); - assert.throws(() => { - new CachePolicy({headers:{}}, {}); - }); - - const cache = new CachePolicy({headers:{}}, {headers:{}}); - assert.throws(() => { - cache.satisfiesWithoutRevalidation({}); - }); - assert.throws(() => { - cache.revalidatedPolicy({}); - }); - assert.throws(() => { - cache.revalidatedPolicy({headers:{}}, {}); - }); - }); -}); |