sasspec
v2.3.0
Published
A unit testing library for sass
Downloads
1
Readme
sasspec
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;');