Commit f548d1c
authored
[test] fix eventHubConsumerClientUnitTests compile error (#36692)
This error exists and only surfaced recently because of possible
improvements in latest vitest version.
The problem is that `_createEventProcessor` is private in
`EventHubConsumerClient` but is public in the intersection type, leading
to a resolved type of `never` for the first parameter of `spyOn`. Previous
versions of vitest didn't report on this.
This PR casts `client` to `any` instead, which should be fine in tests.1 parent 1845b7e commit f548d1c
File tree
2 files changed
+2
-7
lines changed- sdk/eventhub/event-hubs
- test/internal
2 files changed
+2
-7
lines changedLines changed: 1 addition & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
| 22 | + | |
28 | 23 | | |
29 | 24 | | |
30 | 25 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
0 commit comments