Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/fs-cache.js
Original file line number Diff line number Diff line change
Expand Up @@ -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";
};

/**
Expand Down
4 changes: 2 additions & 2 deletions test/cache.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 <hash>.json.gz files to standard cache dir by default", (t) => {
const config = assign({}, globalConfig, {
output: {
path: t.context.directory,
Expand All @@ -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);
Expand Down