We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2047e3f commit c21518cCopy full SHA for c21518c
packages/contentstack-config/test/unit/commands/region.test.ts
@@ -47,7 +47,7 @@ describe('Region command', function () {
47
if (key === 'region') return undefined;
48
return undefined;
49
});
50
- sinon.stub(process, 'exit').callsFake((code) => {
+ const exitStub = sinon.stub(process, 'exit').callsFake((code) => {
51
throw new Error(`CLI_CONFIG_GET_REGION_NOT_FOUND EEXIT: ${code}`);
52
53
let result;
@@ -56,6 +56,7 @@ describe('Region command', function () {
56
} catch (error) {
57
result = error;
58
}
59
+ exitStub.restore();
60
expect(result.message).to.include('CLI_CONFIG_GET_REGION_NOT_FOUND EEXIT: 1');
61
62
0 commit comments