We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 59d2b9f commit 282444bCopy full SHA for 282444b
test.js
@@ -8,6 +8,22 @@ var postcss = require('./index')
8
var proxyquire = require('proxyquire')
9
var sinon = require('sinon')
10
11
+it('should pass file when it isNull()', function (cb) {
12
+ var stream = postcss([ doubler ])
13
+ var emptyFile = {
14
+ isNull: function () { return true }
15
+ }
16
+
17
+ stream.once('data', function (data) {
18
+ assert.equal(data, emptyFile)
19
+ cb()
20
+ })
21
22
+ stream.write(emptyFile)
23
24
+ stream.end()
25
+})
26
27
it('should transform css with multiple processors', function (cb) {
28
29
var stream = postcss(
0 commit comments