Skip to content
This repository was archived by the owner on Aug 15, 2024. It is now read-only.

Commit 636dcd1

Browse files
committed
fixed async test cases
1 parent 8b06539 commit 636dcd1

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

test/MemoryFileSystem.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -261,15 +261,16 @@ describe("streams", function() {
261261
});
262262
});
263263
describe("readable streams", function() {
264-
it("should read files", function() {
264+
it("should read files", function(done) {
265265
var fs = new MemoryFileSystem();
266266
fs.writeFileSync("/file", "Hello");
267267
bl(fs.createReadStream("/file"), function(err, data) {
268268
err.should.eql(undefined);
269269
data.should.eql("Hello");
270+
done();
270271
});
271272
});
272-
it("should respect start/end", function() {
273+
it("should respect start/end", function(done) {
273274
var fs = new MemoryFileSystem();
274275
fs.writeFileSync("/file", "Hello");
275276
bl(fs.createReadStream("/file", {
@@ -278,6 +279,7 @@ describe("streams", function() {
278279
}), function(err, data) {
279280
err.should.eql(undefined);
280281
data.should.eql("el");
282+
done();
281283
});
282284
});
283285
it("should propagate errors", function(done) {

0 commit comments

Comments
 (0)