Skip to content

Commit f928733

Browse files
test: update error message for invalid provider in calm init-ai command
1 parent 776c8fa commit f928733

File tree

1 file changed

+27
-27
lines changed

1 file changed

+27
-27
lines changed

cli/src/cli.e2e.spec.ts

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ describe('CLI Integration Tests', () => {
179179
await expect(
180180
run(calm(), ['init-ai', '-p', 'invalidprovider', '--directory', testDir])
181181
).rejects.toMatchObject({
182-
stderr: expect.stringContaining("error: option '-p, --provider <provider>' argument 'invalidprovider' is invalid. Allowed choices are copilot, kiro, claude.")
182+
stderr: expect.stringContaining('error: option \'-p, --provider <provider>\' argument \'invalidprovider\' is invalid. Allowed choices are copilot, kiro, claude.')
183183
});
184184

185185
// Clean up test directory
@@ -644,16 +644,16 @@ describe('CLI Integration Tests', () => {
644644

645645
await run(
646646
calm(), [
647-
'docify',
648-
'--architecture',
649-
testModelPath,
650-
'--template',
651-
templatePath,
652-
'--output',
653-
outputFile,
654-
'--url-to-local-file-mapping',
655-
STATIC_GETTING_STARTED_MAPPING_PATH,
656-
]
647+
'docify',
648+
'--architecture',
649+
testModelPath,
650+
'--template',
651+
templatePath,
652+
'--output',
653+
outputFile,
654+
'--url-to-local-file-mapping',
655+
STATIC_GETTING_STARTED_MAPPING_PATH,
656+
]
657657
);
658658

659659
expect(fs.existsSync(outputFile)).toBe(true);
@@ -712,14 +712,14 @@ describe('CLI Integration Tests', () => {
712712
const outputWebsite = path.resolve(actualOutputDir, 'website');
713713
await run(
714714
calm(), [
715-
'docify',
716-
'--architecture',
717-
outputArchitecture,
718-
'--output',
719-
outputWebsite,
720-
'--url-to-local-file-mapping',
721-
STATIC_GETTING_STARTED_MAPPING_PATH,
722-
]
715+
'docify',
716+
'--architecture',
717+
outputArchitecture,
718+
'--output',
719+
outputWebsite,
720+
'--url-to-local-file-mapping',
721+
STATIC_GETTING_STARTED_MAPPING_PATH,
722+
]
723723
);
724724

725725
const expectedOutputDocifyWebsite = path.resolve(
@@ -773,14 +773,14 @@ describe('CLI Integration Tests', () => {
773773
);
774774
await run(
775775
calm(), [
776-
'docify',
777-
'--architecture',
778-
outputArchitecture,
779-
'--output',
780-
outputWebsiteWithFlow,
781-
'--url-to-local-file-mapping',
782-
STATIC_GETTING_STARTED_MAPPING_PATH,
783-
]
776+
'docify',
777+
'--architecture',
778+
outputArchitecture,
779+
'--output',
780+
outputWebsiteWithFlow,
781+
'--url-to-local-file-mapping',
782+
STATIC_GETTING_STARTED_MAPPING_PATH,
783+
]
784784
);
785785

786786
const expectedOutputDocifyWebsiteWithFLow = path.resolve(

0 commit comments

Comments
 (0)