Skip to content

Commit eb824c7

Browse files
committed
Skip callbackify test if Promise is not available
1 parent c30ec36 commit eb824c7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/node/callbackify.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ var assert = require('assert');
88
var callbackify = require('../../').callbackify;
99
var execFile = require('child_process').execFile;
1010

11+
if (typeof Promise === 'undefined') {
12+
console.log('no global Promise found, skipping callbackify tests');
13+
return;
14+
}
15+
1116
var values = [
1217
'hello world',
1318
null,

0 commit comments

Comments
 (0)