assertthat
Version:
assertthat provides fluent TDD.
11 lines (10 loc) • 382 B
TypeScript
interface StringAssertions {
containing: (expected: string) => void;
startingWith: (expected: string) => void;
endingWith: (expected: string) => void;
containingAllOf: (expected: Iterable<string>) => void;
containingAnyOf: (expected: Iterable<string>) => void;
empty: () => void;
matching: (expected: RegExp) => void;
}
export type { StringAssertions };