Skip to content

Commit 282444b

Browse files
author
John Xiao
committed
Add test
1 parent 59d2b9f commit 282444b

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

test.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,22 @@ var postcss = require('./index')
88
var proxyquire = require('proxyquire')
99
var sinon = require('sinon')
1010

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+
1127
it('should transform css with multiple processors', function (cb) {
1228

1329
var stream = postcss(

0 commit comments

Comments
 (0)