import { ArrayAssertions } from './ArrayAssertions' ; import { assertArrayIsContainingAllOfIterable } from './assertArrayIsContainingAllOfIterable' ; import { assertArrayIsContainingAnyOfIterable } from './assertArrayIsContainingAnyOfIterable' ; import { assertArrayIsContainingItem } from './assertArrayIsContainingItem' ; import { assertArrayIsEmpty } from './assertArrayIsEmpty' ; import { assertArrayIsNotContainingAllOfIterable } from './assertArrayIsNotContainingAllOfIterable' ; import { assertArrayIsNotContainingAnyOfIterable } from './assertArrayIsNotContainingAnyOfIterable' ; import { assertArrayIsNotContainingItem } from './assertArrayIsNotContainingItem' ; import { assertArrayIsNotEmpty } from './assertArrayIsNotEmpty' ; import { report } from '../../report' ; const getAssertionsForArray = function < TContent > ( actual ) : ArrayAssertions < TContent > { return { containing ( item ) { report ( assertArrayIsContainingItem ( actual , item ) ) ; } , containingAllOf ( iterable ) { report ( assertArrayIsContainingAllOfIterable ( actual , iterable ) ) ; } , containingAnyOf ( iterable ) { report ( assertArrayIsContainingAnyOfIterable ( actual , iterable ) ) ; } , empty ( ) { report ( assertArrayIsEmpty ( actual ) ) ; } } ; } ; const getNegatedAssertionsForArray = function < TContent > ( actual ) : ArrayAssertions < TContent > { return { containing ( item ) { report ( assertArrayIsNotContainingItem ( actual , item ) ) ; } , containingAllOf ( iterable ) { report ( assertArrayIsNotContainingAllOfIterable ( actual , iterable ) ) ; } , containingAnyOf ( iterable ) { report ( assertArrayIsNotContainingAnyOfIterable ( actual , iterable ) ) ; } , empty ( ) { report ( assertArrayIsNotEmpty ( actual ) ) ; } } ; } ; export { getAssertionsForArray , getNegatedAssertionsForArray } ;