Skip to content

Commit e64012a

Browse files
test: enable previously skipped test for management token retrieval and update region mock handling
1 parent 25d2d64 commit e64012a

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

packages/contentstack-bootstrap/test/bootstrap.test.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ describe('Bootstrapping an app', () => {
325325
});
326326

327327
describe('Authentication and Alias handling', () => {
328-
it.skip('should retrieve management token from configHandler when alias is provided', async () => {
328+
it('should retrieve management token from configHandler when alias is provided', async () => {
329329
sandbox.restore();
330330
sandbox = sinon.createSandbox();
331331
const testAlias = 'test-alias';
@@ -371,9 +371,8 @@ describe('Bootstrapping an app', () => {
371371
},
372372
});
373373

374-
// Mock region and cmaHost
375-
command.region = mock.region;
376-
command.cmaHost = mock.region.cma;
374+
// Mock region and cmaHost (base class getter uses _region, then cmaHost uses region)
375+
command._region = mock.region;
377376

378377
// Mock managementSDKClient
379378
const managementAPIClientStub = {

0 commit comments

Comments
 (0)