Skip to content

Latest commit

 

History

History
34 lines (24 loc) · 827 Bytes

README.md

File metadata and controls

34 lines (24 loc) · 827 Bytes

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.