npm.io
2.3.0 • Published 9 years ago

sasspec

Licence
MIT
Version
2.3.0
Deps
0
Vulns
0
Weekly
0
Stars
1

sasspec Build Status

A framework to test sass mixins and functions

API

Testing functions

import Sasspec from 'sasspec';

let sass = new Sasspec('/abspath/to/my/scss/file');
sass.func('sum').callWithArgs(1, 2, 3).equals(6);

Testing mixins

import Sasspec from 'sasspec';

let sass = new Sasspec('/abspath/to/my/scss/file');
sass.mixin('styles').callWithArgs('background', 'red').equals('background: red;');

Keywords