A BDD-style assertion library for Sass that works with the True test runner.
Install Ocha through npm or Bower.
npm install ocha
bower install ocha
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);
}
}