Skip to content

Commit 691f29f

Browse files
committed
chore: update markdown files based on cx approval
1 parent f956b76 commit 691f29f

2 files changed

Lines changed: 4 additions & 8 deletions

File tree

messages/runtest.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ Synchronous test runs can include test methods from only one Flow class. Omit th
104104

105105
# testLevelErr
106106

107-
When specifying classnames, suitenames, or tests, indicate RunSpecifiedTests as the testlevel
107+
When specifying flows or tests, indicate RunSpecifiedTests as the testlevel.
108108

109109
# testResultProcessErr
110110

@@ -126,7 +126,3 @@ Unknown error in Apex Library: %s
126126
# syncClassErr
127127

128128
Synchronous test runs can include test methods from only one Flow class. Omit the --synchronous flag or include tests from only one class
129-
130-
# testLevelErr
131-
132-
When specifying classnames, suitenames, or tests, indicate RunSpecifiedTests as the testlevel

test/commands/flow/run/test.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -558,17 +558,17 @@ describe('flow:test:run', () => {
558558
describe('validateFlags', () => {
559559
it('rejects tests/classnames/suitenames and testlevels', async () => {
560560
try {
561-
await FlowRunTest.run(['--tests', 'flowtesting.mytest', '--test-level', 'RunAllTestsInOrg']);
561+
await FlowRunTest.run(['--tests', 'mytest', '--test-level', 'RunAllTestsInOrg']);
562562
} catch (e) {
563563
expect((e as Error).message).to.equal(messages.getMessage('testLevelErr'));
564564
}
565565
try {
566-
await FlowRunTest.run(['--class-names', 'flowtesting.mytest', '--test-level', 'RunAllTestsInOrg']);
566+
await FlowRunTest.run(['--class-names', 'mytest', '--test-level', 'RunAllTestsInOrg']);
567567
} catch (e) {
568568
expect((e as Error).message).to.equal(messages.getMessage('testLevelErr'));
569569
}
570570
try {
571-
await FlowRunTest.run(['--suite-names', 'flowtesting.mytest', '--test-level', 'RunAllTestsInOrg']);
571+
await FlowRunTest.run(['--suite-names', 'mytest', '--test-level', 'RunAllTestsInOrg']);
572572
} catch (e) {
573573
expect((e as Error).message).to.equal(messages.getMessage('testLevelErr'));
574574
}

0 commit comments

Comments
 (0)