promises-es6.js 468 B

12345678910111213141516171819202122
  1. // tests from promises-es6-tests
  2. (function () {
  3. 'use strict';
  4. if (typeof Promise === 'undefined') {
  5. return;
  6. }
  7. describe('Promises/ES6 Tests', function () {
  8. // an adapter that sets up global.Promise
  9. // since it's already set up, empty functions will suffice
  10. var adapter = {
  11. defineGlobalPromise: function () {
  12. },
  13. removeGlobalPromise: function () {
  14. }
  15. };
  16. require('promises-es6-tests').mocha(adapter);
  17. });
  18. }());