Add active evals (#25)
* Add active evals * Convert type of stats to date or string * Fix generic overloads for run * Lower evaluate timeout * Add comment for createWriteStream
This commit is contained in:
@@ -55,4 +55,18 @@ describe("Evaluate", () => {
|
||||
|
||||
expect(value).toEqual("donkey");
|
||||
}, 250);
|
||||
|
||||
it("should do active process", (done) => {
|
||||
const runner = client.run((ae) => {
|
||||
ae.on("1", () => {
|
||||
ae.emit("2");
|
||||
ae.on("3", () => {
|
||||
ae.emit("close");
|
||||
});
|
||||
});
|
||||
});
|
||||
runner.emit("1");
|
||||
runner.on("2", () => runner.emit("3"));
|
||||
runner.on("close", () => done());
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user