123456789101112131415161718192021 |
- 'use strict';
- var test = require('tape');
- var runTests = require('./tests');
- test('implementation', function (t) {
- /* eslint global-require: 1 */
- if (typeof Promise === 'function') {
- var promisify = require('../implementation');
- runTests(promisify, t);
- } else {
- t['throws'](
- function () { require('../implementation'); },
- TypeError,
- 'throws when no Promise available'
- );
- }
- t.end();
- });
|