Skip to content

Commit 52e6ad9

Browse files
committed
Cleanup tests and bump version
1 parent f8d4405 commit 52e6ad9

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,9 @@ return gulp.src('./src/*.css')
9090

9191
## Changelog
9292

93+
* 6.1.1
94+
* Fixed the error output
95+
9396
* 6.1.0
9497
* Support for `null` files
9598
* Updated dependencies

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "gulp-postcss",
3-
"version": "6.1.0",
3+
"version": "6.1.1",
44
"description": "PostCSS gulp plugin",
55
"main": "index.js",
66
"scripts": {

test.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,13 +54,13 @@ it('should correctly wrap postcss errors', function (cb) {
5454
assert.ok(err instanceof gutil.PluginError)
5555
assert.equal(err.plugin, 'gulp-postcss')
5656
assert.equal(err.showStack, false)
57-
assert.equal(err.fileName, "testpath")
57+
assert.equal(err.fileName, 'testpath')
5858
cb()
5959
})
6060

6161
stream.write(new gutil.File({
6262
contents: new Buffer('a {'),
63-
path: "testpath"
63+
path: 'testpath'
6464
}))
6565

6666
stream.end()
@@ -74,16 +74,15 @@ it('should respond with error on stream files', function (cb) {
7474
stream.on('error', function (err) {
7575
assert.ok(err instanceof gutil.PluginError)
7676
assert.equal(err.plugin, 'gulp-postcss')
77-
console.log(err)
7877
assert.equal(err.showStack, true)
79-
assert.equal(err.fileName, "testpath")
78+
assert.equal(err.fileName, 'testpath')
8079
cb()
8180
})
8281

8382
var streamFile = {
8483
isStream: function () { return true },
8584
isNull: function() { return false },
86-
path: "testpath"
85+
path: 'testpath'
8786
};
8887

8988
stream.write(streamFile)

0 commit comments

Comments
 (0)