@@ -17,15 +17,13 @@ Messages.importMessagesDirectoryFromMetaUrl(import.meta.url);
1717const messages = Messages . loadMessages ( '@salesforce/plugin-apex' , 'runtestcommon' ) ;
1818
1919let logStub : sinon . SinonStub ;
20- let styledJsonStub : sinon . SinonStub ;
2120
2221describe ( 'logic:test:run' , ( ) => {
2322 let sandbox : sinon . SinonSandbox ;
2423
2524 beforeEach ( async ( ) => {
2625 sandbox = sinon . createSandbox ( ) ;
2726 logStub = sandbox . stub ( Ux . prototype , 'log' ) ;
28- styledJsonStub = sandbox . stub ( Ux . prototype , 'styledJSON' ) ;
2927 stubSfCommandUx ( sandbox ) ;
3028 sandbox
3129 . stub ( Org , 'create' )
@@ -177,12 +175,11 @@ describe('logic:test:run', () => {
177175 } ) ;
178176
179177 describe ( 'test success' , ( ) => {
180- it . only ( 'should return a success json format message with sync' , async ( ) => {
178+ it ( 'should return a success json format message with sync' , async ( ) => {
181179 sandbox . stub ( TestService . prototype , 'runTestSynchronous' ) . resolves ( logicTestRunSimple ) ;
182180 sandbox . stub ( Org . prototype , 'getUsername' ) . returns ( '[email protected] ' ) ; 183181 const result = await RunLogicTest . run ( [ '--tests' , 'MyApexTests' , '-r' , 'json' , '--synchronous' ] ) ;
184182 expect ( result ) . to . deep . equal ( logicTestRunSimpleResult ) ;
185- expect ( styledJsonStub . firstCall . args [ 0 ] ) . to . deep . equal ( { result : logicTestRunSimpleResult , status : undefined } ) ;
186183 } ) ;
187184
188185 it ( 'should return a success human format with synchronous' , async ( ) => {
0 commit comments