Initial Save
This commit is contained in:
21
node_modules/util.promisify/test/index.js
generated
vendored
Normal file
21
node_modules/util.promisify/test/index.js
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
'use strict';
|
||||
|
||||
var test = require('tape');
|
||||
|
||||
var runTests = require('./tests');
|
||||
|
||||
test('as a function', function (t) {
|
||||
/* eslint global-require: 1 */
|
||||
if (typeof Promise === 'function') {
|
||||
var promisify = require('../');
|
||||
runTests(promisify, t);
|
||||
} else {
|
||||
t['throws'](
|
||||
function () { require('../'); },
|
||||
TypeError,
|
||||
'throws when no Promise available'
|
||||
);
|
||||
}
|
||||
|
||||
t.end();
|
||||
});
|
||||
Reference in New Issue
Block a user