UNPKG

ivr-tester

Version:

An automated testing framework for IVR call flows

18 lines (17 loc) 770 B
import { When } from "./When"; /** * Determines if there is a section of the transcript that is similar to a piece of text. * * This is case-insensitive. * * See https://www.npmjs.com/package/string-similarity#api to read how similarity is calculated. * * ```ts * containsSimilarTo('this is the test'))('this is the best transcript') // true * ``` * * @param similarText - Text that is compared to the contents of the transcript for similarity * @param similarityThreshold - The degree of similarity is measured in a fraction between 0 and 1. * 0 indicates completely different strings, 1 indicates identical strings. The comparison is case-sensitive. */ export declare const containsSimilarTo: (similarText: string, similarityThreshold?: number) => When;