Skip to content

Commit 3704d13

Browse files
committed
simplify test
1 parent f18271b commit 3704d13

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

test/browsertest/lib/index.web.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -206,19 +206,16 @@ describe("main", function() {
206206
test(process.argv && process.argv.length > 1, "process.argv should be an array");
207207
process.nextTick(function() {
208208
sum2++;
209+
sum2.should.be.eql(2);
210+
done();
209211
});
210212
process.on("xyz", function() {
211213
sum2++;
212214
});
213215
process.emit("xyz");
214216
test(global === window, "global === window");
215-
done();
216217
});
217218
});
218-
219-
after(function() {
220-
test(sum2 === 2, "process.nextTick and process.emit/on should be polyfilled");
221-
});
222219
});
223220

224221

0 commit comments

Comments
 (0)