import { Answerable } from '@serenity-js/core'; import { Expectation } from '../Expectation'; export function matches(expected: Answerable): Expectation { return Expectation.thatActualShould('match', expected) .soThat((actualValue, expectedValue) => expectedValue.test(actualValue)); }