diff --git a/src/fs-cache.js b/src/fs-cache.js index d5037936..9262c444 100644 --- a/src/fs-cache.js +++ b/src/fs-cache.js @@ -80,7 +80,7 @@ const filename = function(source, identifier, options) { hash.end(contents); - return hash.read().toString("hex") + ".json.gzip"; + return hash.read().toString("hex") + ".json.gz"; }; /** diff --git a/test/cache.test.js b/test/cache.test.js index 0ea7521f..44f2cfb0 100644 --- a/test/cache.test.js +++ b/test/cache.test.js @@ -78,7 +78,7 @@ test.cb("should output files to cache directory", (t) => { }); }); -test.cb.serial("should output files to standard cache dir by default", (t) => { +test.cb.serial("should output .json.gz files to standard cache dir by default", (t) => { const config = assign({}, globalConfig, { output: { path: t.context.directory, @@ -102,7 +102,7 @@ test.cb.serial("should output files to standard cache dir by default", (t) => { t.is(err, null); fs.readdir(defaultCacheDir, (err, files) => { - files = files.filter((file) => /\b[0-9a-f]{5,40}\.json\.gzip\b/.test(file)); + files = files.filter((file) => /\b[0-9a-f]{5,40}\.json\.gz\b/.test(file)); t.is(err, null); t.true(files.length > 0);