Skip to content

Commit

Permalink
fix(abap-deploy-config-inquirer ): fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
longieirl committed Sep 17, 2024
1 parent 5685393 commit 0fdd6b4
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,17 @@ describe('Test abap deploy config inquirer conditions', () => {
test('should show client choice question', () => {
mockIsAppStudio.mockReturnValueOnce(false);
PromptState.isYUI = false;
expect(showClientChoiceQuestion(false, '100', false)).toBe(true);
PromptState.abapDeployConfig.isS4HC = false;
expect(showClientChoiceQuestion(false, '100')).toBe(true);
PromptState.resetAbapDeployConfig();
});

test('should not show client choice question', () => {
mockIsAppStudio.mockReturnValueOnce(false);
PromptState.isYUI = false;
expect(showClientChoiceQuestion(true, undefined, true)).toBe(false);
PromptState.abapDeployConfig.isS4HC = true;
expect(showClientChoiceQuestion(true, undefined)).toBe(false);
PromptState.resetAbapDeployConfig();
});

it.each([
Expand Down

0 comments on commit 0fdd6b4

Please sign in to comment.