Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Emit TAP version header

  • Loading branch information...
commit e3f050645e7b8f87706516e91e0d720cbd7ed19e 1 parent 36178c8
@isaacs authored
Showing with 5 additions and 0 deletions.
  1. +5 −0 lib/tap-producer.js
View
5 lib/tap-producer.js
@@ -31,6 +31,11 @@ TapProducer.prototype.write = function (res) {
if (typeof res === "function") throw new Error("wtf?")
if (!this.writable) this.emit("error", new Error("not writable"))
+ if (!this._didHead) {
+ this.emit("data", "TAP version 13\n")
+ this._didHead = true
+ }
+
var diag = res.diag
if (diag === undefined) diag = this.diag
Please sign in to comment.
Something went wrong with that request. Please try again.