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:
@ -117,6 +117,23 @@ describe("fs", () => {
|
||||
});
|
||||
});
|
||||
|
||||
describe("createWriteStream", () => {
|
||||
it("should write to file", (done) => {
|
||||
const file = tmpFile();
|
||||
const content = "howdy\nhow\nr\nu";
|
||||
const stream = fs.createWriteStream(file);
|
||||
stream.on("open", (fd) => {
|
||||
expect(fd).toBeDefined();
|
||||
stream.write(content);
|
||||
stream.close();
|
||||
});
|
||||
stream.on("close", () => {
|
||||
expect(nativeFs.readFileSync(file).toString()).toEqual(content);
|
||||
done();
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
describe("exists", () => {
|
||||
it("should output file exists", (done) => {
|
||||
fs.exists(testFile, (exists) => {
|
||||
|
Reference in New Issue
Block a user