true 2.0.2 → 2.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +18 -2
- data/VERSION +1 -1
- data/bin/true-cli +1 -0
- data/sass/true/_messages.scss +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d1049e00936b5b3c04a2c619fb9d16d28f39db45
|
4
|
+
data.tar.gz: f118f282ac2c88d82c1449b87f4019474e8d63b6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 24c40ff043d8b9839f6939084180adf9ad83136c9a0c1b7fa3086cd7623a4565efa86cfd332a7f152e2df8e76011165c3a141b701307bbe946679dc347878713
|
7
|
+
data.tar.gz: 2473f50f2a1594ce644244f424d15838acf7eb9469ce26ec6c47f4bd276a8a4268fca51b424ab56664af012a6ac9db4db391a87fcf70794ae6e1864ef47fa5f3
|
data/README.md
CHANGED
@@ -29,6 +29,7 @@ bower install true
|
|
29
29
|
npm install sass-true
|
30
30
|
```
|
31
31
|
|
32
|
+
|
32
33
|
Usage
|
33
34
|
-----
|
34
35
|
|
@@ -71,6 +72,20 @@ Usage
|
|
71
72
|
@include report;
|
72
73
|
```
|
73
74
|
|
75
|
+
**Note:**
|
76
|
+
Function unit-tests work across the board,
|
77
|
+
but testing mixins can be a bit more complex.
|
78
|
+
At this point,
|
79
|
+
only Mocha is able to compare/report the results of mixin tests,
|
80
|
+
as long as the mixins don't manipulate the selector chain
|
81
|
+
(it can't test media-query mixins for example).
|
82
|
+
Without using Mocha,
|
83
|
+
you can test any mixin,
|
84
|
+
but you will have to compare the expected and actual results manually
|
85
|
+
in the output code.
|
86
|
+
Version control can make that much easier than it sounds.
|
87
|
+
|
88
|
+
|
74
89
|
### With node-sass and Mocha (or other JS test runners)
|
75
90
|
|
76
91
|
1. Install `true` via npm (`npm install sass-true`).
|
@@ -81,10 +96,10 @@ Usage
|
|
81
96
|
|
82
97
|
```js
|
83
98
|
var path = require('path');
|
84
|
-
var
|
99
|
+
var sassTrue = require('sass-true');
|
85
100
|
|
86
101
|
var sassFile = path.join(__dirname, 'test.scss');
|
87
|
-
|
102
|
+
sassTrue.runSass({file: sassFile}, describe, it);
|
88
103
|
```
|
89
104
|
|
90
105
|
4. Run Mocha, and see your Sass tests reported as individual test results.
|
@@ -101,6 +116,7 @@ Any other JS test runner with equivalents to Mocha's `describe` and `it` should
|
|
101
116
|
be usable in the same way; just pass your test runner's `describe` and `it`
|
102
117
|
equivalents into `runSass`.
|
103
118
|
|
119
|
+
|
104
120
|
### With ruby-sass on the command line
|
105
121
|
|
106
122
|
```bash
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.0.
|
1
|
+
2.0.2
|
data/bin/true-cli
CHANGED
data/sass/true/_messages.scss
CHANGED