Added test for EventEmitter class.

This commit is contained in:
Andrew Gaspar
2013-03-31 05:26:08 -05:00
parent 4cf381e5b0
commit a350605002
+10 -1
View File
@@ -2,6 +2,7 @@
import assert = module("assert");
import fs = module("fs");
import events = module("events");
assert(1 + 1 - 2 === 0, "The universe isn't how it should.");
@@ -27,4 +28,12 @@ fs.writeFile("Harry Potter",
{
encoding: "ascii"
},
assert.ifError);
assert.ifError);
class Networker extends events.EventEmitter {
constructor() {
super();
this.emit("mingling");
}
}