function finalize(status, value, callback) {
				if (sinonPromise.status !== STATUS_PENDING) {
					throw new Error(`Promise already ${sinonPromise.status}`);
				}

				sinonPromise.status = status;
				callback(value);
			}
Resolves or rejects the promise with the given status and value.

@param {string} status
@param {*} value
@param {Function} callback