Skip to content

Commit

Permalink
Add test
Browse files Browse the repository at this point in the history
  • Loading branch information
John Xiao committed Feb 3, 2016
1 parent 59d2b9f commit 282444b
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions test.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,22 @@ var postcss = require('./index')
var proxyquire = require('proxyquire')
var sinon = require('sinon')

it('should pass file when it isNull()', function (cb) {
var stream = postcss([ doubler ])
var emptyFile = {
isNull: function () { return true }
}

stream.once('data', function (data) {
assert.equal(data, emptyFile)
cb()
})

stream.write(emptyFile)

stream.end()
})

it('should transform css with multiple processors', function (cb) {

var stream = postcss(
Expand Down

0 comments on commit 282444b

Please sign in to comment.