plain-event-bus
Advanced tools
Comparing version 0.1.0 to 0.1.1
{ | ||
"name": "plain-event-bus", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "Event bus", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
11
test.js
@@ -5,1 +5,12 @@ 'use strict'; | ||
const { EventBus, EventChanell } = require('.'); | ||
const bus = new EventBus; | ||
const chanell = bus.createEventChanell('ololo'); | ||
chanell.on('event', console.log); | ||
chanell.on('event', console.log); | ||
chanell.on('event', console.log); | ||
console.log(chanell); | ||
5071
106