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