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 259885c commit f78baacCopy full SHA for f78baac
test/index.coffee
@@ -32,8 +32,13 @@ describe 'plugin: gulp-transform', ->
32
33
context 'returns neither a string nor a Buffer', ->
34
35
- it 'throws PluginError', ->
36
- err -> transform((content) -> 42).write buffered()
+ it 'throws PluginError', (done) ->
+ t = transform((content) -> 42)
37
+ t.on 'error', (err) ->
38
+ done()
39
+ t.on 'data', () ->
40
+ done new Error('expected PluginError')
41
+ t.write buffered()
42
43
context 'returns a Buffer or string', ->
44
[fn, file] = [null, null]
0 commit comments