mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Added test for EventEmitter class.
This commit is contained in:
+10
-1
@@ -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");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user