import { assertStringIsContainingAllOfIterable } from './assertStringIsContainingAllOfIterable' ; import { assertStringIsContainingAnyOfIterable } from './assertStringIsContainingAnyOfIterable' ; import { assertStringIsContainingString } from './assertStringIsContainingString' ; import { assertStringIsEmpty } from './assertStringIsEmpty' ; import { assertStringIsEndingWithString } from './assertStringIsEndingWithString' ; import { assertStringIsMatchingRegExp } from './assertStringIsMatchingRegExp' ; import { assertStringIsNotContainingAllOfIterable } from './assertStringIsNotContainingAllOfIterable' ; import { assertStringIsNotContainingAnyOfIterable } from './assertStringIsNotContainingAnyOfIterable' ; import { assertStringIsNotContainingString } from './assertStringIsNotContainingString' ; import { assertStringIsNotEmpty } from './assertStringIsNotEmpty' ; import { assertStringIsNotEndingWithString } from './assertStringIsNotEndingWithString' ; import { assertStringIsNotMatchingRegExp } from './assertStringIsNotMatchingRegExp' ; import { assertStringIsNotStartingWithString } from './assertStringIsNotStartingWithString' ; import { assertStringIsStartingWithString } from './assertStringIsStartingWithString' ; import { report } from '../../report' ; import { StringAssertions } from './StringAssertions' ; const getAssertionsForString = function ( actual ) : StringAssertions { return { containing ( expected ) { report ( assertStringIsContainingString ( actual , expected ) ) ; } , startingWith ( expected ) { report ( assertStringIsStartingWithString ( actual , expected ) ) ; } , endingWith ( expected ) { report ( assertStringIsEndingWithString ( actual , expected ) ) ; } , containingAllOf ( expected ) { report ( assertStringIsContainingAllOfIterable ( actual , expected ) ) ; } , containingAnyOf ( expected ) { report ( assertStringIsContainingAnyOfIterable ( actual , expected ) ) ; } , empty ( ) { report ( assertStringIsEmpty ( actual ) ) ; } , matching ( expected ) { report ( assertStringIsMatchingRegExp ( actual , expected ) ) ; } } ; } ; const getNegatedAssertionsForString = function ( actual ) : StringAssertions { return { containing ( expected ) { report ( assertStringIsNotContainingString ( actual , expected ) ) ; } , startingWith ( expected ) { report ( assertStringIsNotStartingWithString ( actual , expected ) ) ; } , endingWith ( expected ) { report ( assertStringIsNotEndingWithString ( actual , expected ) ) ; } , containingAllOf ( expected ) { report ( assertStringIsNotContainingAllOfIterable ( actual , expected ) ) ; } , containingAnyOf ( expected ) { report ( assertStringIsNotContainingAnyOfIterable ( actual , expected ) ) ; } , empty ( ) { report ( assertStringIsNotEmpty ( actual ) ) ; } , matching ( expected ) { report ( assertStringIsNotMatchingRegExp ( actual , expected ) ) ; } } ; } ; export { getAssertionsForString , getNegatedAssertionsForString } ;