Skip to content

Commit

Permalink
feat(playertesting): use variadic parameters for multiple event expec…
Browse files Browse the repository at this point in the history
…tations
  • Loading branch information
rolandkakonyi committed Nov 28, 2023
1 parent fe5f4ea commit a4c62d7
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -150,13 +150,13 @@ export class AnyEventExpectation extends MultipleEventsExpectation {
}

export function EventSequence(
singleExpectationConvertibles: SingleEventExpectation[] | EventType[]
...singleExpectationConvertibles: SingleEventExpectation[] | EventType[]
): EventSequenceExpectation {
return new EventSequenceExpectation(singleExpectationConvertibles);
}

export function EventBag(
singleExpectationConvertibles: SingleEventExpectation[] | EventType[]
...singleExpectationConvertibles: SingleEventExpectation[] | EventType[]
): EventBagExpectation {
return new EventBagExpectation(singleExpectationConvertibles);
}
Expand All @@ -169,7 +169,7 @@ export function RepeatedEvent(
}

export function AnyEvent(
singleExpectationConvertibles: SingleEventExpectation[] | EventType[]
...singleExpectationConvertibles: SingleEventExpectation[] | EventType[]
): AnyEventExpectation {
return new AnyEventExpectation(singleExpectationConvertibles);
}

0 comments on commit a4c62d7

Please sign in to comment.