Skip to content

Commit 8e0c4bf

Browse files
committed
feature: added test cases
1 parent 83ddf5e commit 8e0c4bf

File tree

2 files changed

+15
-5
lines changed

2 files changed

+15
-5
lines changed

src/roverCLI/roverDeployCLI.ts

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,20 @@ export async function deployCLI() {
1919
const pipeline = await util.samBuild(lang)
2020
const template = { repoConfig: pipeline }
2121
const repoconfig = await Promise.resolve(
22-
util.jsonCreation(<Record<string, IroverDeploymentObject>>template)
22+
util.jsonCreation(
23+
<Record<string, IroverDeploymentObject>>(<unknown>template)
24+
)
2325
)
2426
if (repoconfig !== undefined) {
25-
await deployment.setupRepo(JSON.parse(repoconfig)["repoConfig"])
27+
const Configs: IroverDeploymentObject =
28+
JSON.parse(repoconfig)["repoConfig"]
29+
Configs["repoType"] = (<Record<string, string>>(
30+
(<unknown>Configs["repoType"])
31+
))["repoType"]
32+
Configs["tool"] = (<Record<string, string>>(<unknown>Configs["tool"]))[
33+
"tool"
34+
]
35+
await deployment.setupRepo(Configs)
2636
roverHelpers.generateRoverConfig(
2737
"",
2838
JSON.parse(repoconfig)["repoConfig"],

src/utilities/cliUtil.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -263,8 +263,8 @@ export const samBuild = async (lang: string) => {
263263
const step = Object.fromEntries(
264264
Object.entries(stepData).map(([key, value]) => {
265265
const name = key
266-
.replace("steps required for ", "")
267-
.replace(" environment ", "")
266+
.replace("Steps required for ", "")
267+
.replace(" environment", "")
268268
return [name, value]
269269
})
270270
)
@@ -313,7 +313,7 @@ export const samBuild = async (lang: string) => {
313313
const deployment_choice = (<Record<string, Array<string>>>choices)
314314
.deployment
315315
const deploymentEvent = await multichoice(
316-
`Deployment Events`,
316+
`deploymentevents`,
317317
deployment_choice,
318318
""
319319
)

0 commit comments

Comments
 (0)