Skip to content

Commit

Permalink
add to the previous test
Browse files Browse the repository at this point in the history
  • Loading branch information
tj committed Oct 19, 2012
1 parent 6f04f5c commit ba56606
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions test/test.emitter.wildcards.js
Expand Up @@ -30,15 +30,16 @@ sub.on('*:*', function(topic, action, name){
--pending || done();
});

sub.on('weird[chars]', function(arg){
assert('hello' == arg);
sub.on('weird[chars]{*}', function(a, b){
assert('some stuff' == a);
assert('hello' == b);
--pending || done();
});

sub.connect(3000, function(){
pub.emit('user:login', 'tobi');
pub.emit('user:logout', 'tobi');
pub.emit('weird[chars]', 'hello');
pub.emit('weird[chars]{some stuff}', 'hello');
});

function done() {
Expand Down

0 comments on commit ba56606

Please sign in to comment.