Skip to content

Commit

Permalink
test: add CAP capabilities to after-project-generation test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcel Schork committed Oct 14, 2024
1 parent 100667a commit 8102f77
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion generators/cap/prompts.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export default async function prompts() {
type: "checkbox",
name: "capCapabilities",
message: "Which CAP capabilities do you want to add?",
choices: capabilities.map(capability => ({ name: capability.name, value: capability.name, checked: capability.checked })),
choices: capabilities.map(capability => ({ name: capability.name, value: capability.name, checked: capability.checked })),
})).capCapabilities

this.options.config.runModelSubgenerator = (await this.prompt({
Expand Down
9 changes: 6 additions & 3 deletions test/after-project-generation.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ export const testCases = [
setupRouteTarget: true,
controlName: "CustomControl",
testName: "Second",
capName: "server"
capName: "server",
capCapabilities: ["postgres", "mta", "xsuaa", "data", "tiny-sample"]
},
{
additionalSubgenerators: ["model", "view", "customcontrol", "qunit", "opa5", "cap", "uimodule"], // run uimodule last to avoid prompts to select between uimodules
Expand All @@ -30,7 +31,8 @@ export const testCases = [
setupRouteTarget: false,
controlName: "CustomControl",
testName: "Second",
capName: "server"
capName: "server",
capCapabilities: ["postgres", "mta", "xsuaa", "data", "tiny-sample"]
},
{
additionalSubgenerators: ["model", "view", "customcontrol", "qunit", "opa5", "cap", "uimodule"], // run uimodule last to avoid prompts to select between uimodules
Expand All @@ -44,7 +46,8 @@ export const testCases = [
setupRouteTarget: false,
controlName: "CustomControl",
testName: "Second",
capName: "server"
capName: "server",
capCapabilities: ["postgres", "mta", "xsuaa", "data", "tiny-sample"]
},
{
additionalSubgenerators: ["model", "view", "customcontrol", "qunit", "opa5", "cap", "uimodule"], // run uimodule last to avoid prompts to select between uimodules
Expand Down

0 comments on commit 8102f77

Please sign in to comment.