-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
499cff5
commit 595d656
Showing
4 changed files
with
10 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,9 +38,9 @@ exports[`Test: nested APIs with functions throw an error when called unless mock | |
|
||
exports[`Test: resolves from disk on 2nd hit | Memorized Name: c | Call iteration: 0`] = `{"results":{"foo":"bar"}}`; | ||
|
||
exports[`Test: thrown errors are replayed | Memorized Name: error | Call iteration: 0`] = `{"results":null,"thrownError":"{\\"type\\":\\"Error\\",\\"message\\":\\"foo\\",\\"name\\":\\"Error\\",\\"stack\\":\\"Error: foo\\\\n at memorize_1.memorize (/Users/mattapperson/.vscode/extensions/wallabyjs.wallaby-vscode-1.0.153/projects/75caf8bc3401eff7/instrumented/src/memorize.test.js:362:27)\\\\n at Object.memorize (/Users/mattapperson/.vscode/extensions/wallabyjs.wallaby-vscode-1.0.153/projects/75caf8bc3401eff7/instrumented/src/memorize.js:51:46)\\\\n at expect (/Users/mattapperson/.vscode/extensions/wallabyjs.wallaby-vscode-1.0.153/projects/75caf8bc3401eff7/instrumented/src/memorize.test.js:358:38)\\\\n at Object.<anonymous> (/Users/mattapperson/Development/slapshot/node_modules/expect/build/toThrowMatchers.js:81:11)\\\\n at Object.throwingMatcher [as toThrowError] (/Users/mattapperson/Development/slapshot/node_modules/expect/build/index.js:342:33)\\\\n at Object.<anonymous> (/Users/mattapperson/.vscode/extensions/wallabyjs.wallaby-vscode-1.0.153/projects/75caf8bc3401eff7/instrumented/src/memorize.test.js:365:12)\\\\n at Generator.next (<anonymous>)\\\\n at /Users/mattapperson/Development/slapshot/node_modules/tslib/tslib.js:110:75\\\\n at new Promise (<anonymous>)\\\\n at Object.__awaiter (/Users/mattapperson/Development/slapshot/node_modules/tslib/tslib.js:106:16)\\\\n at Object.<anonymous>.test (/Users/mattapperson/.vscode/extensions/wallabyjs.wallaby-vscode-1.0.153/projects/75caf8bc3401eff7/instrumented/src/memorize.test.js:351:34)\\\\n at Object.e.length.arguments.(anonymous function) (/Users/mattapperson/.vscode/extensions/wallabyjs.wallaby-vscode-1.0.153/wallaby/runners/node/[email protected]/jasmine2Initializer.js:14:1786)\\\\n at Object.asyncJestTest (/Users/mattapperson/Development/slapshot/node_modules/jest-jasmine2/build/jasmineAsyncInstall.js:102:37)\\\\n at resolve (/Users/mattapperson/Development/slapshot/node_modules/jest-jasmine2/build/queueRunner.js:43:12)\\\\n at new Promise (<anonymous>)\\\\n at mapper (/Users/mattapperson/Development/slapshot/node_modules/jest-jasmine2/build/queueRunner.js:26:19)\\\\n at promise.then (/Users/mattapperson/Development/slapshot/node_modules/jest-jasmine2/build/queueRunner.js:73:41)\\"}"}`; | ||
exports[`Test: thrown errors are replayed | Memorized Name: error | Call iteration: 0`] = `{"results":null,"thrownError":"{\\"type\\":\\"Error\\",\\"message\\":\\"foo\\",\\"name\\":\\"Error\\",\\"stack\\":\\"Error: foo\\\\n at memorize_1.memorize (/Users/mattapperson/Development/slapshot/src/memorize.test.ts:319:13)\\\\n at Object.memorize (/Users/mattapperson/Development/slapshot/src/memorize.ts:62:29)\\\\n at expect (/Users/mattapperson/Development/slapshot/src/memorize.test.ts:318:5)\\\\n at Object.<anonymous> (/Users/mattapperson/Development/slapshot/node_modules/expect/build/toThrowMatchers.js:81:11)\\\\n at Object.throwingMatcher [as toThrowError] (/Users/mattapperson/Development/slapshot/node_modules/expect/build/index.js:342:33)\\\\n at /Users/mattapperson/Development/slapshot/src/memorize.test.ts:321:6\\\\n at Generator.next (<anonymous>)\\\\n at /Users/mattapperson/Development/slapshot/node_modules/tslib/tslib.js:110:75\\\\n at new Promise (<anonymous>)\\\\n at Object.__awaiter (/Users/mattapperson/Development/slapshot/node_modules/tslib/tslib.js:106:16)\\\\n at Object.<anonymous>.test (/Users/mattapperson/Development/slapshot/src/memorize.test.ts:311:47)\\\\n at Object.asyncJestTest (/Users/mattapperson/Development/slapshot/node_modules/jest-jasmine2/build/jasmineAsyncInstall.js:102:37)\\\\n at resolve (/Users/mattapperson/Development/slapshot/node_modules/jest-jasmine2/build/queueRunner.js:43:12)\\\\n at new Promise (<anonymous>)\\\\n at mapper (/Users/mattapperson/Development/slapshot/node_modules/jest-jasmine2/build/queueRunner.js:26:19)\\\\n at promise.then (/Users/mattapperson/Development/slapshot/node_modules/jest-jasmine2/build/queueRunner.js:73:41)\\"}"}`; | ||
|
||
exports[`Test: thrown errors are replayed with custom properties | Memorized Name: error | Call iteration: 0`] = `{"results":null,"thrownError":"{\\"type\\":\\"Error\\",\\"message\\":\\"foo\\",\\"name\\":\\"Error\\",\\"stack\\":\\"Error: foo\\\\n at memorize_1.memorize (/Users/mattapperson/.vscode/extensions/wallabyjs.wallaby-vscode-1.0.153/projects/75caf8bc3401eff7/instrumented/src/memorize.test.js:395:27)\\\\n at Object.memorize (/Users/mattapperson/.vscode/extensions/wallabyjs.wallaby-vscode-1.0.153/projects/75caf8bc3401eff7/instrumented/src/memorize.js:51:46)\\\\n at expect (/Users/mattapperson/.vscode/extensions/wallabyjs.wallaby-vscode-1.0.153/projects/75caf8bc3401eff7/instrumented/src/memorize.test.js:391:38)\\\\n at Object.<anonymous> (/Users/mattapperson/Development/slapshot/node_modules/expect/build/toThrowMatchers.js:81:11)\\\\n at Object.throwingMatcher [as toThrowError] (/Users/mattapperson/Development/slapshot/node_modules/expect/build/index.js:342:33)\\\\n at Object.<anonymous> (/Users/mattapperson/.vscode/extensions/wallabyjs.wallaby-vscode-1.0.153/projects/75caf8bc3401eff7/instrumented/src/memorize.test.js:398:12)\\\\n at Generator.next (<anonymous>)\\\\n at /Users/mattapperson/Development/slapshot/node_modules/tslib/tslib.js:110:75\\\\n at new Promise (<anonymous>)\\\\n at Object.__awaiter (/Users/mattapperson/Development/slapshot/node_modules/tslib/tslib.js:106:16)\\\\n at Object.<anonymous>.test (/Users/mattapperson/.vscode/extensions/wallabyjs.wallaby-vscode-1.0.153/projects/75caf8bc3401eff7/instrumented/src/memorize.test.js:378:34)\\\\n at Object.e.length.arguments.(anonymous function) (/Users/mattapperson/.vscode/extensions/wallabyjs.wallaby-vscode-1.0.153/wallaby/runners/node/[email protected]/jasmine2Initializer.js:14:1786)\\\\n at Object.asyncJestTest (/Users/mattapperson/Development/slapshot/node_modules/jest-jasmine2/build/jasmineAsyncInstall.js:102:37)\\\\n at resolve (/Users/mattapperson/Development/slapshot/node_modules/jest-jasmine2/build/queueRunner.js:43:12)\\\\n at new Promise (<anonymous>)\\\\n at mapper (/Users/mattapperson/Development/slapshot/node_modules/jest-jasmine2/build/queueRunner.js:26:19)\\\\n at promise.then (/Users/mattapperson/Development/slapshot/node_modules/jest-jasmine2/build/queueRunner.js:73:41)\\",\\"customProp\\":\\"bar\\"}"}`; | ||
exports[`Test: thrown errors are replayed with custom properties | Memorized Name: error | Call iteration: 0`] = `{"results":null,"thrownError":"{\\"type\\":\\"Error\\",\\"message\\":\\"foo\\",\\"name\\":\\"Error\\",\\"stack\\":\\"Error: foo\\\\n at memorize_1.memorize (/Users/mattapperson/Development/slapshot/src/memorize.test.ts:350:13)\\\\n at Object.memorize (/Users/mattapperson/Development/slapshot/src/memorize.ts:62:29)\\\\n at expect (/Users/mattapperson/Development/slapshot/src/memorize.test.ts:349:5)\\\\n at Object.<anonymous> (/Users/mattapperson/Development/slapshot/node_modules/expect/build/toThrowMatchers.js:81:11)\\\\n at Object.throwingMatcher [as toThrowError] (/Users/mattapperson/Development/slapshot/node_modules/expect/build/index.js:342:33)\\\\n at /Users/mattapperson/Development/slapshot/src/memorize.test.ts:352:6\\\\n at Generator.next (<anonymous>)\\\\n at /Users/mattapperson/Development/slapshot/node_modules/tslib/tslib.js:110:75\\\\n at new Promise (<anonymous>)\\\\n at Object.__awaiter (/Users/mattapperson/Development/slapshot/node_modules/tslib/tslib.js:106:16)\\\\n at Object.<anonymous>.test (/Users/mattapperson/Development/slapshot/src/memorize.test.ts:334:70)\\\\n at Object.asyncJestTest (/Users/mattapperson/Development/slapshot/node_modules/jest-jasmine2/build/jasmineAsyncInstall.js:102:37)\\\\n at resolve (/Users/mattapperson/Development/slapshot/node_modules/jest-jasmine2/build/queueRunner.js:43:12)\\\\n at new Promise (<anonymous>)\\\\n at mapper (/Users/mattapperson/Development/slapshot/node_modules/jest-jasmine2/build/queueRunner.js:26:19)\\\\n at promise.then (/Users/mattapperson/Development/slapshot/node_modules/jest-jasmine2/build/queueRunner.js:73:41)\\",\\"customProp\\":\\"bar\\"}"}`; | ||
|
||
exports[`Test: throws error of non-matching snap when validateSnapshot is set to true | Memorized Name: validateSnapshot | Call iteration: 0`] = `{"results":22,"thrownError":null}`; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters