Server Sent Events testing helper for tape
This is a simple test helper that is designed to work in conjunction with tape. It's designed to make testing server-sent event streams a little simpler and tests can be run in both a server environment (e.g. travis) and browser (e.g. testling).
npm install checkevents --save-dev
Here is a usage example from checkevents own test suite:
var test = ;var checkEvents = ;var isServer = typeof window == 'undefined';var testServer = isServer && ;testServer &&;;;;testServer &&;