Skip to content

Commit

Permalink
Fix tests on 0.10
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacs committed Apr 23, 2017
1 parent fa3da91 commit 81aa913
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion test/test/emitter-match--bail--buffer.tap
Expand Up @@ -2,7 +2,7 @@ TAP version 13
not ok 1 - check ee matches ___/# time=[0-9.]+(ms)?/~~~ {
not ok 1 - should match pattern provided
---
{"at":{"column":5,"file":"test/test/emitter-match.js","line":6},"found":{"_events":{},"_eventsCount":0,"_maxListeners":null,"domain":{},"truthy":false},"pattern":{"truthy":true},"source":"t.match(e, { truthy: true })\n"}
{"at":{"column":5,"file":"test/test/emitter-match.js","line":9},"found":{"_events":{},"_eventsCount":0,"_maxListeners":10,"domain":{},"truthy":false},"pattern":{"truthy":true},"source":"t.match(e, { truthy: true })\n"}
...

Bail out! # should match pattern provided
Expand Down
2 changes: 1 addition & 1 deletion test/test/emitter-match--bail.tap
Expand Up @@ -2,7 +2,7 @@ TAP version 13
# Subtest: check ee matches
not ok 1 - should match pattern provided
---
{"at":{"column":5,"file":"test/test/emitter-match.js","line":6},"found":{"_events":{},"_eventsCount":0,"_maxListeners":null,"domain":{},"truthy":false},"pattern":{"truthy":true},"source":"t.match(e, { truthy: true })\n"}
{"at":{"column":5,"file":"test/test/emitter-match.js","line":9},"found":{"_events":{},"_eventsCount":0,"_maxListeners":10,"domain":{},"truthy":false},"pattern":{"truthy":true},"source":"t.match(e, { truthy: true })\n"}
...

Bail out! # should match pattern provided
Expand Down
2 changes: 1 addition & 1 deletion test/test/emitter-match--buffer.tap
Expand Up @@ -2,7 +2,7 @@ TAP version 13
not ok 1 - check ee matches ___/# time=[0-9.]+(ms)?/~~~ {
not ok 1 - should match pattern provided
---
{"at":{"column":5,"file":"test/test/emitter-match.js","line":6},"found":{"_events":{},"_eventsCount":0,"_maxListeners":null,"domain":{},"truthy":false},"pattern":{"truthy":true},"source":"t.match(e, { truthy: true })\n"}
{"at":{"column":5,"file":"test/test/emitter-match.js","line":9},"found":{"_events":{},"_eventsCount":0,"_maxListeners":10,"domain":{},"truthy":false},"pattern":{"truthy":true},"source":"t.match(e, { truthy: true })\n"}
...

1..1
Expand Down
3 changes: 3 additions & 0 deletions test/test/emitter-match.js
Expand Up @@ -3,6 +3,9 @@ var EE = require('events').EventEmitter
t.test('check ee matches', function (t) {
var e = new EE()
e.truthy = false
// put this here for 0.10's benefit
e._eventsCount = 0
e._maxListeners = 10
t.match(e, { truthy: true })
t.end()
})
2 changes: 1 addition & 1 deletion test/test/emitter-match.tap
Expand Up @@ -2,7 +2,7 @@ TAP version 13
# Subtest: check ee matches
not ok 1 - should match pattern provided
---
{"at":{"column":5,"file":"test/test/emitter-match.js","line":6},"found":{"_events":{},"_eventsCount":0,"_maxListeners":null,"domain":{},"truthy":false},"pattern":{"truthy":true},"source":"t.match(e, { truthy: true })\n"}
{"at":{"column":5,"file":"test/test/emitter-match.js","line":9},"found":{"_events":{},"_eventsCount":0,"_maxListeners":10,"domain":{},"truthy":false},"pattern":{"truthy":true},"source":"t.match(e, { truthy: true })\n"}
...

1..1
Expand Down

0 comments on commit 81aa913

Please sign in to comment.