blob: 1becf3f0d32ff3550af9498c2c9834bfa0b8e066 [file] [log] [blame]
"use strict";
var currentListener = null;
var currentError = null;
beforeEach(function (done) {
currentError = null;
currentListener = function (error) {
currentError = error;
};
testUtils.addUnhandledRejectionListener(currentListener);
done();
});
afterEach(function (done) {
testUtils.removeUnhandledRejectionListener(currentListener);
if (currentError) {
console.error(currentError);
}
done(currentError);
});