blob: 0773f0a6ca77d881de888bf2a010dd0e1063a28b [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);
done(currentError);
});