Skip to content

gakimball/ocha

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.