Module

Webb.Test.Prelude

Package
purescript-webb-test
Repository
mitchellandwebb/webb-test

#shouldEqualM Source

shouldEqualM :: forall m a. MonadThrow Error m => Eq a => Show a => m a -> a -> m Unit

#shouldNotEqualM Source

shouldNotEqualM :: forall m a. MonadThrow Error m => Eq a => Show a => m a -> a -> m Unit

#shouldSatisfyM Source

shouldSatisfyM :: forall m a. MonadThrow Error m => Show a => a -> (a -> m Boolean) -> m Unit

#shouldNotSatisfyM Source

shouldNotSatisfyM :: forall m a. MonadThrow Error m => Show a => a -> (a -> m Boolean) -> m Unit

#shouldSatisfyM_ Source

shouldSatisfyM_ :: forall m a. MonadThrow Error m => Show a => m a -> (a -> Boolean) -> m Unit

#shouldNotSatisfyM_ Source

shouldNotSatisfyM_ :: forall m a. MonadThrow Error m => Show a => m a -> (a -> Boolean) -> m Unit

#shouldSatisfyMFlipped Source

shouldSatisfyMFlipped :: forall m a. MonadThrow Error m => Show a => (a -> m Boolean) -> a -> m Unit

#shouldNotSatisfyMFlipped Source

shouldNotSatisfyMFlipped :: forall m a. MonadThrow Error m => Show a => (a -> m Boolean) -> a -> m Unit

#shouldSatisfyM_Flipped Source

shouldSatisfyM_Flipped :: forall m a. MonadThrow Error m => Show a => (a -> Boolean) -> m a -> m Unit

#shouldNotSatisfyM_Flipped Source

shouldNotSatisfyM_Flipped :: forall m a. MonadThrow Error m => Show a => (a -> Boolean) -> m a -> m Unit

#(?=) Source

Operator alias for Webb.Test.Prelude.shouldEqualM (non-associative / precedence 1)

#(!=) Source

Operator alias for Webb.Test.Prelude.shouldNotEqualM (non-associative / precedence 1)

#(?:) Source

Operator alias for Webb.Test.Prelude.shouldSatisfyMFlipped (non-associative / precedence 1)

#(!:) Source

Operator alias for Webb.Test.Prelude.shouldNotSatisfyMFlipped (non-associative / precedence 1)

#(?@) Source

Operator alias for Webb.Test.Prelude.shouldSatisfyM_Flipped (non-associative / precedence 1)

#(!@) Source

Operator alias for Webb.Test.Prelude.shouldNotSatisfyM_Flipped (non-associative / precedence 1)

#(===) Source

Operator alias for Test.Spec.Assertions.shouldEqual (non-associative / precedence 1)

#(!==) Source

Operator alias for Test.Spec.Assertions.shouldNotEqual (non-associative / precedence 1)

#runSpecs Source

runSpecs :: forall m. MonadAff m => String -> m Unit

Re-exports from Test.Spec

#sequential Source

sequential :: forall m g i a. Monad m => SpecT g i m a -> SpecT g i m a

marks all spec items of the given spec to be evaluated sequentially.

#parallel Source

parallel :: forall m g i a. Monad m => SpecT g i m a -> SpecT g i m a

marks all spec items of the given spec to be safe for parallel evaluation.

#itOnly Source

itOnly :: forall m t arg g. FocusWarning => Monad m => Example t arg g => String -> t -> SpecT g arg m Unit

Create a spec with a description and mark it as the only one to be run. (useful for quickly narrowing down on a single test)

#it Source

it :: forall m t arg g. Monad m => Example t arg g => String -> t -> SpecT g arg m Unit

Create a spec with a description.

#describeOnly Source

describeOnly :: forall m g i a. FocusWarning => Monad m => String -> SpecT g i m a -> SpecT g i m a

Combine a group of specs into a described hierarchy and mark it as the only group to actually be evaluated. (useful for quickly narrowing down on a set)

#describe Source

describe :: forall m g i a. Monad m => String -> SpecT g i m a -> SpecT g i m a

Combine a group of specs into a described hierarchy.

Re-exports from Test.Spec.Assertions

#shouldSatisfy Source

shouldSatisfy :: forall m t. MonadThrow Error m => Show t => t -> (t -> Boolean) -> m Unit

#shouldNotSatisfy Source

shouldNotSatisfy :: forall m t. MonadThrow Error m => Show t => t -> (t -> Boolean) -> m Unit

#shouldNotEqual Source

shouldNotEqual :: forall m t. MonadThrow Error m => Show t => Eq t => t -> t -> m Unit

#shouldEqual Source

shouldEqual :: forall m t. MonadThrow Error m => Show t => Eq t => t -> t -> m Unit