/** * @module Expectations/Interfaces * @author Alan Rodas Bonjour */ import { Expectation } from './Expectation'; import { FinishedExpectation } from './FinishedExpectation'; /** * This interface represents an expectation that is performed over a string. * * @group API: Types */ export interface StringExpectation extends Expectation { /** * Answer if the actual value has expected as a substring. */ toHaveSubstring(substring: string): this & FinishedExpectation; /** * Answer if the actual value starts with the expected string. */ toStartWith(start: string): this & FinishedExpectation; /** * Answer if the actual value ends with the expected string. */ toEndWith(end: string): this & FinishedExpectation; /** * Answer if the actual value matches the given regexp. */ toMatch(regexp: RegExp): this & FinishedExpectation; } //# sourceMappingURL=StringExpectation.d.ts.map