Skip to content

Commit 91445f4

Browse files
author
刘祺
committed
#97 test case fix
1 parent 2cdf9a8 commit 91445f4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ var sourceMaps = require('gulp-sourcemaps')
77
var postcss = require('./index')
88
var proxyquire = require('proxyquire')
99
var sinon = require('sinon')
10+
var path = require('path')
1011

1112
it('should pass file when it isNull()', function (cb) {
1213
var stream = postcss([ doubler ])
@@ -261,7 +262,7 @@ describe('PostCSS Guidelines', function () {
261262
var stream = postcss([ doubler ])
262263
var cssPath = __dirname + '/src/fixture.css'
263264
function Warning (msg) {
264-
this.toSting = function () {
265+
this.toString = function () {
265266
return msg
266267
}
267268
}
@@ -275,7 +276,7 @@ describe('PostCSS Guidelines', function () {
275276
}))
276277

277278
stream.on('data', function () {
278-
gutil.log.calledWith('gulp-postcss:', '/src/fixture.css\nmsg1\nmsg2')
279+
assert(gutil.log.calledWith('gulp-postcss:', 'src' + path.sep + 'fixture.css\nmsg1\nmsg2'))
279280
cb()
280281
})
281282

0 commit comments

Comments
 (0)