appendto/amplify — comment on commit 80676fd7106cce7794ced5850f7f8906302e3cc2
File:  line 0
By gitgrimbo:

Is the "unsubscribe during publish" test an adequate test? When the "racy" topic is published, I think you will get 3 `ok(true)` invocations regardless of whether `racer()` has unsubsubscribed to "racy". Would a better test be to publish the "racy" topic twice and check that there are 5 `ok(true)` invocations? E.g.:

expect( 5 );
...
amplify.publish( "racy" );
amplify.publish( "racy" );