Skip to content
This repository was archived by the owner on Jan 7, 2021. It is now read-only.

Commit b62af9c

Browse files
committed
Adds small hack in tests so they can run in node 0.8.x
1 parent dcd2fb6 commit b62af9c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/test.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ var Lab = require('lab');
99

1010
// Test shortcuts
1111

12+
// This is a hack for node 0.8.x
13+
global.setImmediate = global.setImmediate || process.nextTick.bind(process)
14+
1215
var lab = exports.lab = Lab.script();
1316
var expect = Code.expect;
1417
var describe = lab.describe;

0 commit comments

Comments
 (0)