Skip to content

Commit 5e332bd

Browse files
committed
Add failing test for extra route
1 parent c87b3e7 commit 5e332bd

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

packages/microapps-edge-to-origin/src/index.route.spec.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,11 @@ describe('edge-to-origin - routing - without prefix', () => {
299299
const AppName = 'BatDirect';
300300
const SemVer = '1.2.1-beta.1';
301301
const Locale = 'sv';
302+
// it('should route `direct` app request with *additional* appName to origin for actual appName', async () => {
303+
// theConfig.replaceHostHeader = true;
304+
// const AppName = 'BatDirect';
305+
// const SemVer = '1.2.1-beta.1';
306+
// const AppNameExtraRoute = 'BatDirectExtraRoute';
302307

303308
const app = new Application({
304309
AppName,
@@ -349,6 +354,7 @@ describe('edge-to-origin - routing - without prefix', () => {
349354
querystring: '',
350355
clientIp: '1.1.1.1',
351356
uri: `/${Locale}/${AppName.toLowerCase()}`,
357+
// uri: `/${AppNameExtraRoute.toLowerCase()}`,
352358
origin: {
353359
custom: {
354360
customHeaders: {},

0 commit comments

Comments
 (0)