Function addLawSet

Adds a required set of laws to the LawSet.

  • Parameters

    Returns ((__namedParameters: LawSet) => {
        laws: Law<any>[];
        name?: string;
        sets: LawSet[];
    })

      • (__namedParameters): {
            laws: Law<any>[];
            name?: string;
            sets: LawSet[];
        }
      • Parameters

        Returns {
            laws: Law<any>[];
            name?: string;
            sets: LawSet[];
        }

        • laws: Law<any>[]

          Possibly empty list laws that must pass for the law set to pass.

        • Optionalname?: string

          Optional name of unit under test. Runner uses this for describe() block name. If missing, no describe() block is wrapped around child laws.

        • sets: LawSet[]