Skip to content

Commit

Permalink
Release 1.4.3
Browse files Browse the repository at this point in the history
  • Loading branch information
mattapperson committed Sep 12, 2019
1 parent fd84769 commit e95dac1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@mattapperson/slapshot",
"version": "1.4.2",
"version": "1.4.3",
"main": "lib/index.js",
"description": "Mock method calls with snapshots, run your intigation tests online or offline!",
"license": "MIT",
Expand Down
6 changes: 1 addition & 5 deletions src/memorize.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export function memorize<ReturnedData = any>(
.split(".")
.slice(0, -1)
.join(".");
const basename = `${path.basename(testPath)}.snap`;
const basename = `${path.basename(testPath)}.slap_snap`;
const snapFile = path.resolve(
testPath,
"..",
Expand Down Expand Up @@ -106,7 +106,6 @@ export function memorize<ReturnedData = any>(
results: null
},
jestContext,
snapshots,
validateSnapshot
);
})
Expand All @@ -119,7 +118,6 @@ export function memorize<ReturnedData = any>(
results: methodResults
},
jestContext,
snapshots,
validateSnapshot
);
});
Expand All @@ -131,7 +129,6 @@ export function memorize<ReturnedData = any>(
fullSnapshotName,
methodResults,
jestContext,
snapshots,
validateSnapshot
);
}
Expand All @@ -142,7 +139,6 @@ function resolveData(
fullSnapshotName: string,
methodResults: SlapshotDataFormat,
jestContext: any,
snapshots: Snapshot,
validateSnapshot: ValidationOptions
) {
if (!shouldUpdateSnapshot() && runInOnlineMode()) {
Expand Down

0 comments on commit e95dac1

Please sign in to comment.