Skip to content

Commit cf7165a

Browse files
committed
Add failing test for extra route
1 parent a0ffbf7 commit cf7165a

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
@@ -392,6 +392,11 @@ describe('edge-to-origin - routing - without prefix', () => {
392392
const AppName = 'BatDirect';
393393
const SemVer = '1.2.1-beta.1';
394394
const Locale = 'sv';
395+
// it('should route `direct` app request with *additional* appName to origin for actual appName', async () => {
396+
// theConfig.replaceHostHeader = true;
397+
// const AppName = 'BatDirect';
398+
// const SemVer = '1.2.1-beta.1';
399+
// const AppNameExtraRoute = 'BatDirectExtraRoute';
395400

396401
const app = new Application({
397402
AppName,
@@ -442,6 +447,7 @@ describe('edge-to-origin - routing - without prefix', () => {
442447
querystring: '',
443448
clientIp: '1.1.1.1',
444449
uri: `/${Locale}/${AppName.toLowerCase()}`,
450+
// uri: `/${AppNameExtraRoute.toLowerCase()}`,
445451
origin: {
446452
custom: {
447453
customHeaders: {},

0 commit comments

Comments
 (0)