An open API service indexing awesome lists of open source software.

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.

Awesome Lists containing this project

README

        

# sasspec [![Build Status](https://travis-ci.org/zephraph/sasspec.svg?branch=master)](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;');
```