sasspec

2.3.0 • Public • Published

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;');

Readme

Keywords

Package Sidebar

Install

npm i sasspec

Weekly Downloads

2

Version

2.3.0

License

MIT

Last publish

Collaborators

  • zephraph