Module

Yoga.Om.Test

Package
purescript-spec-om
Repository
rowtype-yoga/purescript-spec-om

#describe Source

describe :: forall ctx. String -> Aff ctx -> SpecOm ctx Unit -> Spec Unit

#it Source

it :: forall ctx. String -> Om ctx () Unit -> SpecOm ctx Unit

#itWith Source

itWith :: forall ctx ctx'. String -> Aff ctx' -> Om ctx' () Unit -> SpecOm ctx Unit

#testOm Source

testOm :: forall ctx a. Monoid a => ctx -> Om ctx () a -> Aff a

#fail Source

fail :: forall m. MonadEffect m => String -> m Unit

#shouldEqual Source

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

#shouldNotEqual Source

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

#shouldSatisfy Source

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

#shouldNotSatisfy Source

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

#shouldContain Source

shouldContain :: forall m f a. MonadEffect m => Show a => Eq a => Show (f a) => Foldable f => f a -> a -> m Unit

#shouldNotContain Source

shouldNotContain :: forall m f a. MonadEffect m => Show a => Eq a => Show (f a) => Foldable f => f a -> a -> m Unit

#textContentShouldEqual Source

Re-exports from Test.Spec

#SpecT Source

newtype SpecT :: (Type -> Type) -> Type -> (Type -> Type) -> Type -> Typenewtype SpecT g i m a

Instances

#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.

#pending Source

pending :: forall m g i. Monad m => String -> SpecT g i m Unit

Create a pending spec.

#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.

#focus Source

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

focus focuses all spec items of the given spec.

Applying focus to a spec with focused spec items has no effect.

#before_ Source

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

Run a custom action before every spec item.

#beforeAll_ Source

beforeAll_ :: forall m g i a. MonadEffect m => MonadAff g => MonadError Error g => g Unit -> SpecT g i m a -> SpecT g i m a

Run a custom action before the first spec item.

#after_ Source

after_ :: forall m g e f i a. Monad m => MonadBracket e f g => g Unit -> SpecT g i m a -> SpecT g i m a

Run a custom action after every spec item.

#afterAll_ Source

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

Run a custom action after the last spec item.

Modules
Yoga.Om.Test