☕ BDD-style Sass assertion library.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
assets
src
test
.gitignore
LICENSE
README.md
bower.json
package.json

README.md

Ocha

A BDD-style assertion library for Sass that works with the True test runner.

Installation

Install Ocha through npm or Bower.

npm install ocha
bower install ocha

Usage

Use the expect() mixin to write an assertion. Pass a value to check, and then a series of language functions. Most assertions also require a final value to compare with.

@import 'true';
@import 'ocha';

@include test-module('Test Module') {
  @include test('Test') {
    $value: 5
    @include expect($value to equal 5);
  }
}

API

View the full API here.