@@ -18,7 +18,7 @@ describe('Backend Functions - generateVirtualEntryContent', () => {
1818 describe ( 'without action-catalog' , ( ) => {
1919 beforeEach ( ( ) => {
2020 jest . spyOn ( shared , 'isActionCatalogInstalled' ) . mockReturnValue ( false ) ;
21- jest . spyOn ( shared , 'isDatadogAppsInstalled ' ) . mockReturnValue ( false ) ;
21+ jest . spyOn ( shared , 'isDatadogAppsBackendInstalled ' ) . mockReturnValue ( false ) ;
2222 } ) ;
2323
2424 test ( 'Should import the function by name from the entry path' , ( ) => {
@@ -105,7 +105,7 @@ describe('Backend Functions - generateVirtualEntryContent', () => {
105105 describe ( 'with action-catalog' , ( ) => {
106106 beforeEach ( ( ) => {
107107 jest . spyOn ( shared , 'isActionCatalogInstalled' ) . mockReturnValue ( true ) ;
108- jest . spyOn ( shared , 'isDatadogAppsInstalled ' ) . mockReturnValue ( false ) ;
108+ jest . spyOn ( shared , 'isDatadogAppsBackendInstalled ' ) . mockReturnValue ( false ) ;
109109 } ) ;
110110
111111 test ( 'Should include action-catalog import' , ( ) => {
@@ -132,7 +132,7 @@ describe('Backend Functions - generateVirtualEntryContent', () => {
132132 describe ( 'with @datadog/apps-backend' , ( ) => {
133133 beforeEach ( ( ) => {
134134 jest . spyOn ( shared , 'isActionCatalogInstalled' ) . mockReturnValue ( false ) ;
135- jest . spyOn ( shared , 'isDatadogAppsInstalled ' ) . mockReturnValue ( true ) ;
135+ jest . spyOn ( shared , 'isDatadogAppsBackendInstalled ' ) . mockReturnValue ( true ) ;
136136 } ) ;
137137
138138 test ( 'Should import and set the backend context before calling the handler' , ( ) => {
@@ -157,7 +157,7 @@ describe('Backend Functions - generateVirtualEntryContent', () => {
157157
158158 test ( 'Should escape entry paths with special characters' , ( ) => {
159159 jest . spyOn ( shared , 'isActionCatalogInstalled' ) . mockReturnValue ( false ) ;
160- jest . spyOn ( shared , 'isDatadogAppsInstalled ' ) . mockReturnValue ( false ) ;
160+ jest . spyOn ( shared , 'isDatadogAppsBackendInstalled ' ) . mockReturnValue ( false ) ;
161161 const result = generateVirtualEntryContent (
162162 'handler' ,
163163 '/path/with "quotes"/handler.ts' ,
@@ -171,7 +171,7 @@ describe('Backend Functions - generateDevVirtualEntryContent', () => {
171171 beforeEach ( ( ) => {
172172 jest . restoreAllMocks ( ) ;
173173 jest . spyOn ( shared , 'isActionCatalogInstalled' ) . mockReturnValue ( false ) ;
174- jest . spyOn ( shared , 'isDatadogAppsInstalled ' ) . mockReturnValue ( false ) ;
174+ jest . spyOn ( shared , 'isDatadogAppsBackendInstalled ' ) . mockReturnValue ( false ) ;
175175 } ) ;
176176
177177 test ( 'Should produce identical output to generateVirtualEntryContent' , ( ) => {
@@ -202,7 +202,7 @@ describe('Backend Functions - args round-trip via $.backendFunctionArgs', () =>
202202 beforeEach ( ( ) => {
203203 jest . restoreAllMocks ( ) ;
204204 jest . spyOn ( shared , 'isActionCatalogInstalled' ) . mockReturnValue ( false ) ;
205- jest . spyOn ( shared , 'isDatadogAppsInstalled ' ) . mockReturnValue ( false ) ;
205+ jest . spyOn ( shared , 'isDatadogAppsBackendInstalled ' ) . mockReturnValue ( false ) ;
206206 } ) ;
207207
208208 // Extract the body of the generated `main($)` function so we can eval it
0 commit comments