Comparing version 4.1.3 to 4.2.0
@@ -306,2 +306,23 @@ | ||
test('support deep wildcard without separator', function (t) { | ||
t.plan(2) | ||
const e = builder() | ||
const expected = { | ||
topic: 'hello', | ||
payload: { my: 'message' } | ||
} | ||
e.on('#', function (message, cb) { | ||
t.equal(message.topic, expected.topic) | ||
cb() | ||
}, function () { | ||
e.emit(expected, function () { | ||
e.close(function () { | ||
t.pass('closed') | ||
}) | ||
}) | ||
}) | ||
}) | ||
test('support deep wildcard - match empty words', function (t) { | ||
@@ -308,0 +329,0 @@ t.plan(2) |
{ | ||
"name": "mqemitter", | ||
"version": "4.1.3", | ||
"version": "4.2.0", | ||
"description": "An Opinionated Message Queue with an emitter-style API", | ||
@@ -5,0 +5,0 @@ "main": "mqemitter.js", |
@@ -118,3 +118,3 @@ <!-- markdownlint-disable MD013 MD024 --> | ||
cb() | ||
} | ||
}) | ||
emitter.on('hello/+', function(message, cb) { | ||
@@ -121,0 +121,0 @@ // will not be called |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
33940
15
757