From 8102f77c4d0730d6a73ff6a0d5234ff7dad53e59 Mon Sep 17 00:00:00 2001 From: Marcel Schork Date: Mon, 14 Oct 2024 10:19:51 +0200 Subject: [PATCH] test: add CAP capabilities to after-project-generation test cases --- generators/cap/prompts.js | 2 +- test/after-project-generation.js | 9 ++++++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/generators/cap/prompts.js b/generators/cap/prompts.js index cd53a1c..3289eda 100644 --- a/generators/cap/prompts.js +++ b/generators/cap/prompts.js @@ -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({ diff --git a/test/after-project-generation.js b/test/after-project-generation.js index 669d98c..1a4abdf 100644 --- a/test/after-project-generation.js +++ b/test/after-project-generation.js @@ -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 @@ -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 @@ -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