@@ -8,7 +8,7 @@ import { Do, DoSync } from "../utilities/do-try";
88import { PolyfillUtils } from "../utilities/polyfill-utils" ;
99import { StubResourceRecord } from "../tests/stubs/stub-resource-record" ;
1010import { CoreUtils } from "../utilities/core-utils" ;
11- import { CatchHandler } from "../types/do-try-types " ;
11+ import { CatchResultHandler } from "../types/catch-result-handler " ;
1212
1313PolyfillUtils . registerPromiseFinallyPolyfill ( ) ;
1414
@@ -123,7 +123,7 @@ describe("do-try.ts", () => {
123123 describe ( "Do.configure" , ( ) => {
124124 it ( "When defaultErrorHandler configured and catch() is in call chain, then defaultErrorHandler is still executed" , async ( ) => {
125125 // Arrange
126- const defaultErrorHandler : CatchHandler < any > = jest . fn ( ) ;
126+ const defaultErrorHandler : CatchResultHandler < any > = jest . fn ( ) ;
127127 Do . configure ( { defaultErrorHandler } ) ;
128128 const catchHandler = jest . fn ( ) ;
129129 const workload = async ( ) => {
@@ -142,7 +142,7 @@ describe("do-try.ts", () => {
142142
143143 it ( "When defaultErrorHandler configured and no catch() is in call chain, the defaultErrorHandler is still executed" , async ( ) => {
144144 // Arrange
145- const defaultErrorHandler : CatchHandler < any > = jest . fn ( ) ;
145+ const defaultErrorHandler : CatchResultHandler < any > = jest . fn ( ) ;
146146 Do . configure ( { defaultErrorHandler } ) ;
147147 const workload = async ( ) => {
148148 throw Error ( ) ;
@@ -245,7 +245,7 @@ describe("do-try.ts", () => {
245245 describe ( "DoSync.configure" , ( ) => {
246246 it ( "When defaultErrorHandler configured and catch() in call chain, then defaultErrorHandler is still executed" , ( ) => {
247247 // Arrange
248- const defaultErrorHandler : CatchHandler < any > = jest . fn ( ) ;
248+ const defaultErrorHandler : CatchResultHandler < any > = jest . fn ( ) ;
249249 DoSync . configure ( { defaultErrorHandler } ) ;
250250 const catchHandler = jest . fn ( ) ;
251251 const workload = ( ) => {
@@ -264,7 +264,7 @@ describe("do-try.ts", () => {
264264
265265 it ( "When defaultErrorHandler configured and no catch() is in call chain, the defaultErrorHandler is still executed" , ( ) => {
266266 // Arrange
267- const defaultErrorHandler : CatchHandler < any > = jest . fn ( ) ;
267+ const defaultErrorHandler : CatchResultHandler < any > = jest . fn ( ) ;
268268 DoSync . configure ( { defaultErrorHandler } ) ;
269269 const workload = ( ) => {
270270 throw Error ( ) ;
0 commit comments