@@ -313,7 +313,7 @@ describe("loadBootstrapData", () => {
313313 window . BOOTSTRAP_FILE = "bootstrap.app-a.json" ;
314314 window . APP_ROOT = "sa-static/app-a/versions/1.88.0/webroot/" ;
315315 const promise = loadBootstrapData ( ) ;
316- expect ( RuntimeApi_runtimeMicroAppStandalone ) . toBeCalledWith ( "app-a" , {
316+ expect ( RuntimeApi_runtimeMicroAppStandalone ) . toHaveBeenCalledWith ( "app-a" , {
317317 version : "1.88.0" ,
318318 } ) ;
319319 const data = await promise ;
@@ -358,8 +358,8 @@ describe("loadBootstrapData", () => {
358358 } ) ;
359359
360360 await fulfilStoryboard ( data . storyboards [ 0 ] ) ;
361- expect ( RuntimeApi_runtimeMicroAppStandalone ) . toBeCalledTimes ( 1 ) ;
362- expect ( registerMocks ) . toBeCalledTimes ( 1 ) ;
361+ expect ( RuntimeApi_runtimeMicroAppStandalone ) . toHaveBeenCalledTimes ( 1 ) ;
362+ expect ( registerMocks ) . toHaveBeenCalledTimes ( 1 ) ;
363363
364364 expect ( data . storyboards [ 0 ] ) . toEqual ( {
365365 app : {
@@ -428,7 +428,7 @@ describe("loadBootstrapData", () => {
428428 window . BOOTSTRAP_FILE = "bootstrap.mini.g.json" ;
429429
430430 const promise = loadBootstrapData ( ) ;
431- expect ( RuntimeApi_runtimeMicroAppStandalone ) . not . toBeCalled ( ) ;
431+ expect ( RuntimeApi_runtimeMicroAppStandalone ) . not . toHaveBeenCalled ( ) ;
432432
433433 const data = await promise ;
434434 expect ( data ) . toEqual ( {
@@ -705,7 +705,7 @@ describe("loadBootstrapData", () => {
705705 } ,
706706 } ,
707707 } ) ;
708- expect ( consoleWarn ) . toBeCalledTimes ( 1 ) ;
708+ expect ( consoleWarn ) . toHaveBeenCalledTimes ( 1 ) ;
709709 } ) ;
710710
711711 test ( "standalone with invalid conf.yaml" , async ( ) => {
@@ -719,8 +719,8 @@ describe("loadBootstrapData", () => {
719719 await expect ( promise ) . rejects . toThrowErrorMatchingInlineSnapshot (
720720 `"Invalid conf.yaml"`
721721 ) ;
722- expect ( consoleWarn ) . toBeCalledTimes ( 1 ) ;
723- expect ( consoleError ) . toBeCalledTimes ( 1 ) ;
722+ expect ( consoleWarn ) . toHaveBeenCalledTimes ( 1 ) ;
723+ expect ( consoleError ) . toHaveBeenCalledTimes ( 1 ) ;
724724 } ) ;
725725
726726 test ( "standalone with conf.yaml of user_config_by_apps" , async ( ) => {
@@ -745,7 +745,7 @@ describe("loadBootstrapData", () => {
745745 } ,
746746 ] ,
747747 } ) ;
748- expect ( consoleWarn ) . toBeCalledTimes ( 1 ) ;
748+ expect ( consoleWarn ) . toHaveBeenCalledTimes ( 1 ) ;
749749 } ) ;
750750
751751 test ( "standalone with conf.yaml of missing in user_config_by_apps" , async ( ) => {
@@ -768,9 +768,9 @@ describe("loadBootstrapData", () => {
768768 } ,
769769 ] ,
770770 } ) ;
771- expect ( consoleWarn ) . toBeCalledTimes ( 1 ) ;
771+ expect ( consoleWarn ) . toHaveBeenCalledTimes ( 1 ) ;
772772 await fulfilStoryboard ( data . storyboards [ 0 ] ) ;
773- expect ( consoleWarn ) . toBeCalledTimes ( 2 ) ;
773+ expect ( consoleWarn ) . toHaveBeenCalledTimes ( 2 ) ;
774774 consoleWarn . mockReset ( ) ;
775775 } ) ;
776776
@@ -794,7 +794,7 @@ describe("loadBootstrapData", () => {
794794 } ,
795795 ] ,
796796 } ) ;
797- expect ( consoleWarn ) . toBeCalledTimes ( 1 ) ;
797+ expect ( consoleWarn ) . toHaveBeenCalledTimes ( 1 ) ;
798798 } ) ;
799799
800800 test ( "non-standalone" , async ( ) => {
@@ -832,7 +832,7 @@ describe("loadBootstrapData", () => {
832832 } ) ;
833833
834834 await fulfilStoryboard ( data . storyboards [ 0 ] ) ;
835- expect ( mockGetAppStoryboardV2 ) . toBeCalledTimes ( 1 ) ;
835+ expect ( mockGetAppStoryboardV2 ) . toHaveBeenCalledTimes ( 1 ) ;
836836
837837 expect ( data . storyboards [ 0 ] ) . toEqual ( {
838838 app : {
0 commit comments