Now that nearly all features, except those that are core ES6, have been moved to decorators, it'd be nice to switch to the more isolated style of decorator testing used in inspect-test. Basically, get a Promise constructor and decorate it with only the functionality you are testing.
The rub is that decorators typically modify Promise.prototype directly. So each test would need to load lib/makePromise and call it to create a new Promise constructor. Then they could decorate that safely and test it.
Now that nearly all features, except those that are core ES6, have been moved to decorators, it'd be nice to switch to the more isolated style of decorator testing used in inspect-test. Basically, get a Promise constructor and decorate it with only the functionality you are testing.
The rub is that decorators typically modify
Promise.prototype
directly. So each test would need to loadlib/makePromise
and call it to create a new Promise constructor. Then they could decorate that safely and test it.