Skip to content

Commit

Permalink
Added test for EventEmitter class.
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewGaspar committed Mar 31, 2013
1 parent 4cf381e commit a350605
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion node/node-tests.ts
Expand Up @@ -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.");

Expand All @@ -27,4 +28,12 @@ fs.writeFile("Harry Potter",
{
encoding: "ascii"
},
assert.ifError);
assert.ifError);

class Networker extends events.EventEmitter {
constructor() {
super();

this.emit("mingling");
}
}

0 comments on commit a350605

Please sign in to comment.