# sasspec

> A unit testing library for sass

Latest version **2.3.0** (published 2016-10-12) · MIT license · 0 weekly downloads

## Install

```sh
npm install sasspec
pnpm add sasspec
yarn add sasspec
bun add sasspec
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.3.0 |
| Published | 2016-10-12 |
| First published | 2016-06-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=5.0.0 |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Zephraph |
| Maintainers | zephraph |
| Keywords | sass, unit, testing |

## Links

- npm: https://www.npmjs.com/package/sasspec
- Repository: https://github.com/zephraph/sasspec
- Homepage: https://github.com/zephraph/sasspec#readme
- Issues: https://github.com/zephraph/sasspec/issues
- npm.io page: https://npm.io/package/sasspec

## Alternatives

- [duck](https://npm.io/package/duck.md) — 4.2M weekly downloads
- [ava](https://npm.io/package/ava.md) — 560.2K weekly downloads
- [storybook-addon-module-mock](https://npm.io/package/storybook-addon-module-mock.md) — 71.7K weekly downloads
- [@ethereum-waffle/mock-contract](https://npm.io/package/@ethereum-waffle/mock-contract.md) — 40.0K weekly downloads
- [aws-elasticsearch-connector](https://npm.io/package/aws-elasticsearch-connector.md) — 37.4K weekly downloads

## Recent versions

- 2.3.0 (latest) — 2016-10-12
- 2.2.1 — 2016-10-12
- 2.2.0 — 2016-10-12
- 2.1.0 — 2016-10-11
- 2.0.0 — 2016-10-11
- 1.0.0 — 2016-06-14

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

---
_Source: https://npm.io/package/sasspec · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
