@event-driven-io/emmett-expressjs 0.43.0-beta.10 → 0.43.0-beta.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -1086,9 +1086,13 @@ var sendProblem = (response, statusCode, options) => {
1086
1086
  // src/testing/apiE2ESpecification.ts
1087
1087
  var _supertest = require('supertest'); var _supertest2 = _interopRequireDefault(_supertest);
1088
1088
  var _assert = require('assert'); var _assert2 = _interopRequireDefault(_assert);
1089
- function apiE2ESpecificationFor(optionsOrGetApplication) {
1089
+ function apiE2ESpecificationFor(optionsOrGetApplication, getApplication2) {
1090
1090
  const resolveApplication = () => {
1091
1091
  if (typeof optionsOrGetApplication === "function") {
1092
+ if (getApplication2) {
1093
+ const eventStore2 = optionsOrGetApplication();
1094
+ return getApplication2(eventStore2);
1095
+ }
1092
1096
  return optionsOrGetApplication();
1093
1097
  }
1094
1098
  const eventStore = _nullishCoalesce(_optionalChain([optionsOrGetApplication, 'access', _49 => _49.getEventStore, 'optionalCall', _50 => _50()]), () => ( getInMemoryEventStore()));