Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/fair-dryers-jump.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@sap-ux/app-config-writer': patch
---

fix: configuration source message
2 changes: 1 addition & 1 deletion packages/app-config-writer/src/prompt/smartlinks-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ const addAppStudioQuestions = (questions: PromptObject[], target?: DeployTarget)
questions.push({
name: 'select',
type: (prev) => (!prev ? 'select' : null),
message: t('questions.target'),
message: t('questions.target', { type: '', file: '' }),
choices: [
{ title: t('questions.enter', { type: TargetType.destination }), value: TargetType.destination },
{ title: t('questions.enter', { type: TargetType.url }), value: TargetType.url }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ describe('Test function getSmartLinksTargetFromPrompt', () => {
// First select destination or url
expect(destinationOrUrlPrompt.name).toEqual('select');
expect(destinationOrUrlPrompt.type()).toEqual('select');
expect(destinationOrUrlPrompt.message).toContain('SmartLinks configuration source {{-type}} {{-file}}');
expect(destinationOrUrlPrompt.message).toContain('SmartLinks configuration source ');
expect(destinationOrUrlPrompt.choices).toMatchObject([
{ title: 'Enter destination', value: 'destination' },
{ title: 'Enter url', value: 'url' }
Expand Down
Loading