UNPKG

cybernaut

Version:

Reliable, zero configuration end-to-end testing in BDD-style.

22 lines (21 loc) 715 B
import { Description } from './description'; export interface Predicate<T> { readonly description: Description; test(value: T): boolean; } export declare class PredicateBuilder { private _at; private _be; private _not; readonly at: this; readonly be: this; readonly not: this; contain(expectedValue: string): Predicate<string>; equal<T>(expectedValue: T): Predicate<T>; match(regex: RegExp): Predicate<string>; above(expectedValue: number): Predicate<number>; least(expectedValue: number): Predicate<number>; below(expectedValue: number): Predicate<number>; most(expectedValue: number): Predicate<number>; private _build<T>({args, template}, test); }