From 5e547434021a334075f454a5f5f44b0a4042cae2 Mon Sep 17 00:00:00 2001 From: Aramis Sennyey Date: Tue, 29 Nov 2022 17:05:22 -0500 Subject: [PATCH] Fix test cases. Signed-off-by: Aramis Sennyey --- .../core-app-api/src/app/AppManager.compat.test.tsx | 5 ++++- .../core-app-api/src/app/AppManager.stable.test.tsx | 10 ++++++++-- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/packages/core-app-api/src/app/AppManager.compat.test.tsx b/packages/core-app-api/src/app/AppManager.compat.test.tsx index bdebd79dc4..a0f27d751b 100644 --- a/packages/core-app-api/src/app/AppManager.compat.test.tsx +++ b/packages/core-app-api/src/app/AppManager.compat.test.tsx @@ -81,7 +81,10 @@ describe.each(['beta', 'stable'])('react-router %s', rrVersion => { configLoader: async () => [ { context: 'test', - data: { app: { baseUrl: 'http://localhost/foo' } }, + data: { + app: { baseUrl: 'http://localhost/foo' }, + backend: { baseUrl: 'http://localhost' }, + }, }, ], bindRoutes: () => {}, diff --git a/packages/core-app-api/src/app/AppManager.stable.test.tsx b/packages/core-app-api/src/app/AppManager.stable.test.tsx index a9948a6070..8c60293391 100644 --- a/packages/core-app-api/src/app/AppManager.stable.test.tsx +++ b/packages/core-app-api/src/app/AppManager.stable.test.tsx @@ -62,7 +62,10 @@ describe('AppManager', () => { configLoader: async () => [ { context: 'test', - data: { app: { baseUrl: 'http://localhost/foo' } }, + data: { + app: { baseUrl: 'http://localhost/foo' }, + backend: { baseUrl: 'http://localhost' }, + }, }, ], }); @@ -94,7 +97,10 @@ describe('AppManager', () => { configLoader: async () => [ { context: 'test', - data: { app: { baseUrl: 'http://localhost/foo' } }, + data: { + app: { baseUrl: 'http://localhost/foo' }, + backend: { baseUrl: 'http://localhost' }, + }, }, ], });