Skip to content

Commit

Permalink
Remove event-stream from tests
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Nov 26, 2018
1 parent a762be0 commit d46b09e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
1 change: 0 additions & 1 deletion package.json
Expand Up @@ -26,7 +26,6 @@
"unified-engine-gulp": "^6.0.0"
},
"devDependencies": {
"event-stream": "^4.0.0",
"gulp-util": "^3.0.8",
"nyc": "^13.0.0",
"prettier": "^1.14.2",
Expand Down
13 changes: 8 additions & 5 deletions test.js
@@ -1,7 +1,7 @@
var PassThrough = require('stream').PassThrough
var test = require('tape')
var util = require('gulp-util')
var html = require('remark-html')
var es = require('event-stream')
var remark = require('.')

var File = util.File
Expand Down Expand Up @@ -69,16 +69,19 @@ test('gulp-remark', function(t) {
})

t.test('should throw PluginError with streams', function(st) {
var stream = new File({
contents: es.readArray(['_italic_', '**bold**', '.'])
})
var inStream = new PassThrough()

var outStream = new File({contents: inStream})

st.throws(write, PluginError)

st.end()

function write() {
remark().write(stream)
inStream.write('_italic_')
inStream.write('**bold**')
inStream.write('.')
remark().write(outStream)
}
})

Expand Down

0 comments on commit d46b09e

Please sign in to comment.