Skip to content

Commit

Permalink
fix(core): removed deprecated API Cast.whereEveryoneCan
Browse files Browse the repository at this point in the history
Related tickets: re #1403
  • Loading branch information
jan-molak committed Mar 22, 2023
1 parent f48994c commit 7f2f5b9
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions packages/core/src/stage/Cast.ts
Expand Up @@ -149,23 +149,6 @@ import { Ability, Actor } from '../screenplay';
*/
export abstract class Cast {

/**
* Creates a generic `Cast` implementation, where every actor
* is given all the exact same abilities specified when the method is called.
*
* @deprecated
* Giving all the actors the **exact same abilities** means that there will be
* potentially multiple actors holding on to the **exact same resources**.
* If those abilities were {@aplink Discardable}, dismissing the first actor
* discards the abilities of other actors.
* Use {@apilink Cast.where} instead.
*
* @param abilities
*/
static whereEveryoneCan(...abilities: Ability[]): Cast {
return new GenericCastWithActorsOfExactSameAbilities(abilities);
}

/**
* Creates a generic `Cast` implementation, where new actors receive the abilities
* configured by the `prepareFunction`.
Expand Down

0 comments on commit 7f2f5b9

Please sign in to comment.