[Pkg-javascript-devel] Bug#862887: 14 tests fail gulp: output stream dest() should return a output stream that writes files:, Uncaught TypeError: Expected a string, got object

Pirate Praveen praveen at debian.org
Thu May 18 04:57:56 UTC 2017


package: gulp
severity: important
version: 3.9.3-2

pravi at nishumbha:~/forge/debian/git/pkg-javascript/node-gulp$ mocha -R spec


  gulp output stream
    dest()
      ✓ should return a stream
      1) should return a output stream that writes files
      ✓ should return a output stream that does not write non-read files
      2) should return a output stream that writes streaming files
      ✓ should return a output stream that writes streaming files into
new directories
      ✓ should return a output stream that writes streaming files into
new directories (buffer: false)
      ✓ should return a output stream that writes streaming files into
new directories (read: false)
      ✓ should return a output stream that writes streaming files into
new directories (read: false, buffer: false)

  gulp input stream
    src()
      ✓ should return a stream
      3) should return a stream
      4) should return a input stream for multiple globs
      5) should return a input stream for multiple globs, with negation
      ✓ should return a input stream with no contents when read is false
      6) should return a input stream with contents as stream when
buffer is false
      7) should return a input stream from a deep glob
      8) should return a input stream from a deeper glob
      9) should return a file stream from a flat path

  taskTree()
    ✓ should form a tree properly

  gulp tasks
    task()
      ✓ should define a task
    run()
gulp.run() has been deprecated. Use task dependencies or gulp.watch task
triggering instead.
      ✓ should run multiple tasks
      ✓ should run all tasks when call run() multiple times
      ✓ should run all async promise tasks
      ✓ should run all async callback tasks
      ✓ should emit task_not_found and throw an error when task is not
defined
      ✓ should run task scoped to gulp
      ✓ should run default task scoped to gulp

  gulp
    watch()
      10) should call the function when file changes: no options
      11) should call the function when file changes: w/ options
      12) should not drop options when no callback specified
      13) should run many tasks: w/ options
      14) should run many tasks: no options


  17 passing (148ms)
  14 failing

  1) gulp output stream dest() should return a output stream that writes
files:
     Uncaught TypeError: Expected a string, got object
    at module.exports.x (/usr/lib/nodejs/strip-bom/index.js:4:9)
    at /usr/lib/nodejs/vinyl-fs/lib/src/getContents/bufferFile.js:13:23
    at /usr/lib/nodejs/graceful-fs/graceful-fs.js:78:16
    at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:445:3)


  2) gulp output stream dest() should return a output stream that writes
streaming files:
     Uncaught TypeError: Expected a string, got object
    at module.exports.x (/usr/lib/nodejs/strip-bom/index.js:4:9)
    at /usr/lib/nodejs/strip-bom-stream/index.js:12:12
    at processCallback (/usr/lib/nodejs/first-chunk-stream/index.js:60:3)
    at FirstChunkStream.firstChunkStreamWrite [as _write]
(/usr/lib/nodejs/first-chunk-stream/index.js:92:4)
    at doWrite (_stream_writable.js:334:12)
    at writeOrBuffer (_stream_writable.js:320:5)
    at FirstChunkStream.Writable.write (_stream_writable.js:247:11)
    at Cloneable.ondata (_stream_readable.js:555:20)
    at emitOne (events.js:96:13)
    at Cloneable.emit (events.js:188:7)
    at readableAddChunk (_stream_readable.js:176:18)
    at Cloneable.Readable.push (_stream_readable.js:134:10)
    at Cloneable.Transform.push (_stream_transform.js:128:32)
    at afterTransform (_stream_transform.js:77:12)
    at TransformState.afterTransform (_stream_transform.js:54:12)
    at Cloneable.noop [as _transform]
(/usr/lib/nodejs/through2/through2.js:26:3)
    at Cloneable.Transform._read (_stream_transform.js:167:10)
    at Cloneable.Transform._write (_stream_transform.js:155:12)
    at doWrite (_stream_writable.js:334:12)
    at writeOrBuffer (_stream_writable.js:320:5)
    at Cloneable.Writable.write (_stream_writable.js:247:11)
    at Readable.ondata (_stream_readable.js:555:20)
    at emitOne (events.js:96:13)
    at Readable.emit (events.js:188:7)
    at readableAddChunk (_stream_readable.js:176:18)
    at Readable.push (_stream_readable.js:134:10)
    at Readable.Transform.push (_stream_transform.js:128:32)
    at afterTransform (_stream_transform.js:77:12)
    at TransformState.afterTransform (_stream_transform.js:54:12)
    at Readable.PassThrough._transform (_stream_passthrough.js:21:3)
    at Readable.Transform._read (_stream_transform.js:167:10)
    at Readable.Transform._write (_stream_transform.js:155:12)
    at doWrite (_stream_writable.js:334:12)
    at writeOrBuffer (_stream_writable.js:320:5)
    at Readable.Writable.write (_stream_writable.js:247:11)
    at ReadStream.ondata (_stream_readable.js:555:20)
    at emitOne (events.js:96:13)
    at ReadStream.emit (events.js:188:7)
    at readableAddChunk (_stream_readable.js:176:18)
    at ReadStream.Readable.push (_stream_readable.js:134:10)
    at onread (fs.js:2004:12)
    at FSReqWrap.wrapper [as oncomplete] (fs.js:681:17)


  3) gulp input stream src() should return a stream:
     Uncaught TypeError: Expected a string, got object
    at module.exports.x (/usr/lib/nodejs/strip-bom/index.js:4:9)
    at /usr/lib/nodejs/vinyl-fs/lib/src/getContents/bufferFile.js:13:23
    at /usr/lib/nodejs/graceful-fs/graceful-fs.js:78:16
    at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:445:3)


  4) gulp input stream src() should return a input stream for multiple
globs:
     Uncaught TypeError: Expected a string, got object
    at module.exports.x (/usr/lib/nodejs/strip-bom/index.js:4:9)
    at /usr/lib/nodejs/vinyl-fs/lib/src/getContents/bufferFile.js:13:23
    at /usr/lib/nodejs/graceful-fs/graceful-fs.js:78:16
    at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:445:3)


  5) gulp input stream src() should return a input stream for multiple
globs, with negation:
     Uncaught TypeError: Expected a string, got object
    at module.exports.x (/usr/lib/nodejs/strip-bom/index.js:4:9)
    at /usr/lib/nodejs/vinyl-fs/lib/src/getContents/bufferFile.js:13:23
    at /usr/lib/nodejs/graceful-fs/graceful-fs.js:78:16
    at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:445:3)


  6) gulp input stream src() should return a input stream with contents
as stream when buffer is false:
     Uncaught TypeError: Expected a string, got object
    at module.exports.x (/usr/lib/nodejs/strip-bom/index.js:4:9)
    at /usr/lib/nodejs/strip-bom-stream/index.js:12:12
    at processCallback (/usr/lib/nodejs/first-chunk-stream/index.js:60:3)
    at FirstChunkStream.firstChunkStreamWrite [as _write]
(/usr/lib/nodejs/first-chunk-stream/index.js:92:4)
    at doWrite (_stream_writable.js:334:12)
    at writeOrBuffer (_stream_writable.js:320:5)
    at FirstChunkStream.Writable.write (_stream_writable.js:247:11)
    at Cloneable.ondata (_stream_readable.js:555:20)
    at emitOne (events.js:96:13)
    at Cloneable.emit (events.js:188:7)
    at readableAddChunk (_stream_readable.js:176:18)
    at Cloneable.Readable.push (_stream_readable.js:134:10)
    at Cloneable.Transform.push (_stream_transform.js:128:32)
    at afterTransform (_stream_transform.js:77:12)
    at TransformState.afterTransform (_stream_transform.js:54:12)
    at Cloneable.noop [as _transform]
(/usr/lib/nodejs/through2/through2.js:26:3)
    at Cloneable.Transform._read (_stream_transform.js:167:10)
    at Cloneable.Transform._write (_stream_transform.js:155:12)
    at doWrite (_stream_writable.js:334:12)
    at writeOrBuffer (_stream_writable.js:320:5)
    at Cloneable.Writable.write (_stream_writable.js:247:11)
    at Readable.ondata (_stream_readable.js:555:20)
    at emitOne (events.js:96:13)
    at Readable.emit (events.js:188:7)
    at readableAddChunk (_stream_readable.js:176:18)
    at Readable.push (_stream_readable.js:134:10)
    at Readable.Transform.push (_stream_transform.js:128:32)
    at afterTransform (_stream_transform.js:77:12)
    at TransformState.afterTransform (_stream_transform.js:54:12)
    at Readable.PassThrough._transform (_stream_passthrough.js:21:3)
    at Readable.Transform._read (_stream_transform.js:167:10)
    at Readable.Transform._write (_stream_transform.js:155:12)
    at doWrite (_stream_writable.js:334:12)
    at writeOrBuffer (_stream_writable.js:320:5)
    at Readable.Writable.write (_stream_writable.js:247:11)
    at ReadStream.ondata (_stream_readable.js:555:20)
    at emitOne (events.js:96:13)
    at ReadStream.emit (events.js:188:7)
    at readableAddChunk (_stream_readable.js:176:18)
    at ReadStream.Readable.push (_stream_readable.js:134:10)
    at onread (fs.js:2004:12)
    at FSReqWrap.wrapper [as oncomplete] (fs.js:681:17)


  7) gulp input stream src() should return a input stream from a deep glob:
     Uncaught TypeError: Expected a string, got object
    at module.exports.x (/usr/lib/nodejs/strip-bom/index.js:4:9)
    at /usr/lib/nodejs/vinyl-fs/lib/src/getContents/bufferFile.js:13:23
    at /usr/lib/nodejs/graceful-fs/graceful-fs.js:78:16
    at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:445:3)


  8) gulp input stream src() should return a input stream from a deeper
glob:
     Uncaught TypeError: Expected a string, got object
    at module.exports.x (/usr/lib/nodejs/strip-bom/index.js:4:9)
    at /usr/lib/nodejs/vinyl-fs/lib/src/getContents/bufferFile.js:13:23
    at /usr/lib/nodejs/graceful-fs/graceful-fs.js:78:16
    at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:445:3)


  9) gulp input stream src() should return a file stream from a flat path:
     Uncaught TypeError: Expected a string, got object
    at module.exports.x (/usr/lib/nodejs/strip-bom/index.js:4:9)
    at /usr/lib/nodejs/vinyl-fs/lib/src/getContents/bufferFile.js:13:23
    at /usr/lib/nodejs/graceful-fs/graceful-fs.js:78:16
    at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:445:3)


  10) gulp watch() should call the function when file changes: no options:
     Uncaught TypeError: vfs.watch is not a function
    at Gulp.watch
(/home/pravi/forge/debian/git/pkg-javascript/node-gulp/index.js:40:14)
    at
/home/pravi/forge/debian/git/pkg-javascript/node-gulp/test/watch.js:39:28
    at /usr/lib/nodejs/graceful-fs/graceful-fs.js:99:16
    at /usr/lib/nodejs/graceful-fs/graceful-fs.js:43:10
    at FSReqWrap.oncomplete (fs.js:123:15)


  11) gulp watch() should call the function when file changes: w/ options:
     Uncaught TypeError: vfs.watch is not a function
    at Gulp.watch
(/home/pravi/forge/debian/git/pkg-javascript/node-gulp/index.js:40:14)
    at
/home/pravi/forge/debian/git/pkg-javascript/node-gulp/test/watch.js:61:28
    at /usr/lib/nodejs/graceful-fs/graceful-fs.js:99:16
    at /usr/lib/nodejs/graceful-fs/graceful-fs.js:43:10
    at FSReqWrap.oncomplete (fs.js:123:15)


  12) gulp watch() should not drop options when no callback specified:
     Uncaught TypeError: vfs.watch is not a function
    at Gulp.watch
(/home/pravi/forge/debian/git/pkg-javascript/node-gulp/index.js:40:14)
    at
/home/pravi/forge/debian/git/pkg-javascript/node-gulp/test/watch.js:85:28
    at /usr/lib/nodejs/graceful-fs/graceful-fs.js:99:16
    at /usr/lib/nodejs/graceful-fs/graceful-fs.js:43:10
    at FSReqWrap.oncomplete (fs.js:123:15)


  13) gulp watch() should run many tasks: w/ options:
     Uncaught TypeError: vfs.watch is not a function
    at Gulp.watch
(/home/pravi/forge/debian/git/pkg-javascript/node-gulp/index.js:35:16)
    at
/home/pravi/forge/debian/git/pkg-javascript/node-gulp/test/watch.js:124:28
    at /usr/lib/nodejs/graceful-fs/graceful-fs.js:99:16
    at /usr/lib/nodejs/graceful-fs/graceful-fs.js:43:10
    at FSReqWrap.oncomplete (fs.js:123:15)


  14) gulp watch() should run many tasks: no options:
     Uncaught TypeError: vfs.watch is not a function
    at Gulp.watch
(/home/pravi/forge/debian/git/pkg-javascript/node-gulp/index.js:35:16)
    at
/home/pravi/forge/debian/git/pkg-javascript/node-gulp/test/watch.js:162:28
    at /usr/lib/nodejs/graceful-fs/graceful-fs.js:99:16
    at /usr/lib/nodejs/graceful-fs/graceful-fs.js:43:10
    at FSReqWrap.oncomplete (fs.js:123:15)





-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 862 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-javascript-devel/attachments/20170518/fa90e98a/attachment.sig>


More information about the Pkg-javascript-devel mailing list