File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
packages/core/src/test/webview Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ import { Logger, setLogger } from '../../shared/logger/logger'
88import assert from 'assert'
99import { ToolkitError } from '../../shared/errors'
1010import { handleWebviewError } from '../../webviews/server'
11+ import { assertLogsContain } from '../globalSetup.test'
1112
1213describe ( 'logAndShowWebviewError()' , function ( ) {
1314 let logError : SinonStub < [ message : string , ...meta : any [ ] ] , number >
@@ -32,7 +33,7 @@ describe('logAndShowWebviewError()', function () {
3233
3334 handleWebviewError ( inputError , myWebviewId , myCommand )
3435
35- assert . strictEqual ( logError . callCount , 1 )
36+ assertLogsContain ( 'Random Error' , true , 'error' )
3637
3738 // A shortened error is shown to the user
3839 const userFacingError = logError . getCall ( 0 ) . args [ 1 ]
You can’t perform that action at this time.
0 commit comments