File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -121,12 +121,16 @@ export interface MatchScreenshotOptions {
121121}
122122
123123
124- export interface EventSpy extends AsyncIterableIterator < SerializedEvent > {
124+ export interface EventSpy {
125125 events : SerializedEvent [ ] ;
126126 eventName : string ;
127127 firstEvent : SerializedEvent ;
128128 lastEvent : SerializedEvent ;
129129 length : number ;
130+ next ( ) : Promise < {
131+ done : boolean ;
132+ value : SerializedEvent ;
133+ } > ;
130134}
131135
132136
Original file line number Diff line number Diff line change @@ -72,10 +72,6 @@ export class EventSpy implements d.EventSpy {
7272 return this . events [ this . events . length - 1 ] || null ;
7373 }
7474
75- [ Symbol . asyncIterator ] ( ) {
76- return this ;
77- }
78-
7975 next ( ) {
8076 const cursor = this . cursor ;
8177 this . cursor ++ ;
You can’t perform that action at this time.
0 commit comments