Bones/node_modules/es6-shim/test/promise/promises-es6.js

23 lines
468 B
JavaScript
Raw Normal View History

2017-05-17 13:45:25 -04:00
// tests from promises-es6-tests
(function () {
'use strict';
if (typeof Promise === 'undefined') {
return;
}
describe('Promises/ES6 Tests', function () {
// an adapter that sets up global.Promise
// since it's already set up, empty functions will suffice
var adapter = {
defineGlobalPromise: function () {
},
removeGlobalPromise: function () {
}
};
require('promises-es6-tests').mocha(adapter);
});
}());