Skip to content

Commit

Permalink
fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mxsdev committed Jun 16, 2023
1 parent 6dffd2b commit d23c9d5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/extension/runner.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -551,8 +551,12 @@ suite('grpc Runner', () => {
test('grpc program failure gives info message', async () => {
const { duplex } = await createNewSession()

duplex._onError.fire(new RpcError('unable to infer file program'))
duplex._onError.fire(new RpcError('invalid LanguageId'))
expect(window.showErrorMessage).toBeCalledTimes(1)

vi.mocked(window.showErrorMessage).mockClear()

duplex._onError.fire(new RpcError('invalid ProgramName'))
expect(window.showErrorMessage).toBeCalledTimes(1)
})
})
Expand Down

0 comments on commit d23c9d5

Please sign in to comment.