https://github.com/zephraph/sasspec
Sass unit testing made easy.
https://github.com/zephraph/sasspec
Last synced: about 2 months ago
JSON representation
Sass unit testing made easy.
- Host: GitHub
- URL: https://github.com/zephraph/sasspec
- Owner: zephraph
- License: mit
- Created: 2016-06-08T17:40:49.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-06-18T13:20:30.000Z (almost 8 years ago)
- Last Synced: 2024-04-26T23:43:24.267Z (12 months ago)
- Language: JavaScript
- Homepage:
- Size: 89.8 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# sasspec [](https://travis-ci.org/zephraph/sasspec)
A framework to test sass mixins and functions
## API
Testing functions
```javascript
import Sasspec from 'sasspec';let sass = new Sasspec('/abspath/to/my/scss/file');
sass.func('sum').callWithArgs(1, 2, 3).equals(6);
```Testing mixins
```javascript
import Sasspec from 'sasspec';let sass = new Sasspec('/abspath/to/my/scss/file');
sass.mixin('styles').callWithArgs('background', 'red').equals('background: red;');
```