@n1k1t/mock-server 0.1.61 → 0.1.62
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/lib/package.json +1 -1
- package/package.json +1 -1
- package/bin/index.ts +0 -33
- package/coverage/clover.xml +0 -1372
- package/coverage/cobertura-coverage.xml +0 -3466
- package/coverage/coverage-final.json +0 -76
- package/coverage/lcov-report/base.css +0 -224
- package/coverage/lcov-report/block-navigation.js +0 -87
- package/coverage/lcov-report/client/errors/connection.error.ts.html +0 -106
- package/coverage/lcov-report/client/errors/index.html +0 -161
- package/coverage/lcov-report/client/errors/index.ts.html +0 -97
- package/coverage/lcov-report/client/errors/internal-server.error.ts.html +0 -115
- package/coverage/lcov-report/client/errors/validation.error.ts.html +0 -115
- package/coverage/lcov-report/client/helpers/expectations.ts.html +0 -766
- package/coverage/lcov-report/client/helpers/index.html +0 -131
- package/coverage/lcov-report/client/helpers/index.ts.html +0 -88
- package/coverage/lcov-report/client/index.html +0 -161
- package/coverage/lcov-report/client/index.ts.html +0 -100
- package/coverage/lcov-report/client/methods/expectations-group.update.method.ts.html +0 -193
- package/coverage/lcov-report/client/methods/expectations.create.method.ts.html +0 -202
- package/coverage/lcov-report/client/methods/expectations.delete.method.ts.html +0 -184
- package/coverage/lcov-report/client/methods/expectations.update.method.ts.html +0 -241
- package/coverage/lcov-report/client/methods/index.html +0 -191
- package/coverage/lcov-report/client/methods/index.ts.html +0 -103
- package/coverage/lcov-report/client/methods/ping.method.ts.html +0 -160
- package/coverage/lcov-report/client/models/client.ts.html +0 -340
- package/coverage/lcov-report/client/models/index.html +0 -146
- package/coverage/lcov-report/client/models/index.ts.html +0 -91
- package/coverage/lcov-report/client/models/method.ts.html +0 -235
- package/coverage/lcov-report/client/onsite.ts.html +0 -172
- package/coverage/lcov-report/client/remote.ts.html +0 -187
- package/coverage/lcov-report/client/utils.ts.html +0 -211
- package/coverage/lcov-report/config/index.html +0 -131
- package/coverage/lcov-report/config/index.ts.html +0 -97
- package/coverage/lcov-report/config/model.ts.html +0 -226
- package/coverage/lcov-report/expectations/__utils__/index.html +0 -116
- package/coverage/lcov-report/expectations/__utils__/index.ts.html +0 -268
- package/coverage/lcov-report/expectations/index.html +0 -146
- package/coverage/lcov-report/expectations/index.ts.html +0 -94
- package/coverage/lcov-report/expectations/models/expectation.ts.html +0 -373
- package/coverage/lcov-report/expectations/models/index.html +0 -161
- package/coverage/lcov-report/expectations/models/index.ts.html +0 -94
- package/coverage/lcov-report/expectations/models/operator.ts.html +0 -352
- package/coverage/lcov-report/expectations/models/storage.ts.html +0 -211
- package/coverage/lcov-report/expectations/operators/and.operator.ts.html +0 -196
- package/coverage/lcov-report/expectations/operators/exec.operator.ts.html +0 -160
- package/coverage/lcov-report/expectations/operators/has.operator.ts.html +0 -778
- package/coverage/lcov-report/expectations/operators/if.operator.ts.html +0 -316
- package/coverage/lcov-report/expectations/operators/index.html +0 -281
- package/coverage/lcov-report/expectations/operators/index.ts.html +0 -118
- package/coverage/lcov-report/expectations/operators/merge.operator.ts.html +0 -379
- package/coverage/lcov-report/expectations/operators/not.operator.ts.html +0 -199
- package/coverage/lcov-report/expectations/operators/or.operator.ts.html +0 -196
- package/coverage/lcov-report/expectations/operators/remove.operator.ts.html +0 -238
- package/coverage/lcov-report/expectations/operators/root.operator.ts.html +0 -238
- package/coverage/lcov-report/expectations/operators/set.operator.ts.html +0 -436
- package/coverage/lcov-report/expectations/operators/switch.operator.ts.html +0 -463
- package/coverage/lcov-report/expectations/types.ts.html +0 -766
- package/coverage/lcov-report/expectations/utils.ts.html +0 -802
- package/coverage/lcov-report/favicon.png +0 -0
- package/coverage/lcov-report/index.html +0 -431
- package/coverage/lcov-report/logger/index.html +0 -131
- package/coverage/lcov-report/logger/index.ts.html +0 -325
- package/coverage/lcov-report/logger/utils.ts.html +0 -160
- package/coverage/lcov-report/meta/index.html +0 -146
- package/coverage/lcov-report/meta/index.ts.html +0 -103
- package/coverage/lcov-report/meta/model.ts.html +0 -172
- package/coverage/lcov-report/meta/storage.ts.html +0 -145
- package/coverage/lcov-report/prettify.css +0 -1
- package/coverage/lcov-report/prettify.js +0 -2
- package/coverage/lcov-report/server/expectations/__utils__/index.html +0 -116
- package/coverage/lcov-report/server/expectations/__utils__/index.ts.html +0 -199
- package/coverage/lcov-report/server/expectations/index.html +0 -131
- package/coverage/lcov-report/server/expectations/operators/and.operator.ts.html +0 -103
- package/coverage/lcov-report/server/expectations/operators/exec.operator.ts.html +0 -139
- package/coverage/lcov-report/server/expectations/operators/has.operator.ts.html +0 -358
- package/coverage/lcov-report/server/expectations/operators/if.operator.ts.html +0 -130
- package/coverage/lcov-report/server/expectations/operators/index.html +0 -266
- package/coverage/lcov-report/server/expectations/operators/index.ts.html +0 -112
- package/coverage/lcov-report/server/expectations/operators/merge.operator.ts.html +0 -193
- package/coverage/lcov-report/server/expectations/operators/not.operator.ts.html +0 -100
- package/coverage/lcov-report/server/expectations/operators/or.operator.ts.html +0 -115
- package/coverage/lcov-report/server/expectations/operators/remove.operator.ts.html +0 -169
- package/coverage/lcov-report/server/expectations/operators/set.operator.ts.html +0 -208
- package/coverage/lcov-report/server/expectations/operators/utils.ts.html +0 -346
- package/coverage/lcov-report/server/expectations/types.ts.html +0 -517
- package/coverage/lcov-report/server/expectations/utils.ts.html +0 -358
- package/coverage/lcov-report/server/models/containers/index.html +0 -161
- package/coverage/lcov-report/server/models/containers/index.ts.html +0 -91
- package/coverage/lcov-report/server/models/containers/model.ts.html +0 -328
- package/coverage/lcov-report/server/models/containers/storage.ts.html +0 -256
- package/coverage/lcov-report/server/models/containers/utils.ts.html +0 -97
- package/coverage/lcov-report/server/models/context/index.html +0 -146
- package/coverage/lcov-report/server/models/context/index.ts.html +0 -514
- package/coverage/lcov-report/server/models/context/snapshot.ts.html +0 -529
- package/coverage/lcov-report/server/models/context/utils.ts.html +0 -382
- package/coverage/lcov-report/server/models/endpoint.ts.html +0 -304
- package/coverage/lcov-report/server/models/exchanges/index.html +0 -131
- package/coverage/lcov-report/server/models/exchanges/index.ts.html +0 -88
- package/coverage/lcov-report/server/models/exchanges/socket-io.ts.html +0 -154
- package/coverage/lcov-report/server/models/executor/errors/index.html +0 -116
- package/coverage/lcov-report/server/models/executor/errors/index.ts.html +0 -130
- package/coverage/lcov-report/server/models/executor/index.html +0 -116
- package/coverage/lcov-report/server/models/executor/index.ts.html +0 -1018
- package/coverage/lcov-report/server/models/history/index.html +0 -146
- package/coverage/lcov-report/server/models/history/index.ts.html +0 -91
- package/coverage/lcov-report/server/models/history/model.ts.html +0 -331
- package/coverage/lcov-report/server/models/history/storage.ts.html +0 -184
- package/coverage/lcov-report/server/models/index.html +0 -161
- package/coverage/lcov-report/server/models/index.ts.html +0 -115
- package/coverage/lcov-report/server/models/providers/index.html +0 -146
- package/coverage/lcov-report/server/models/providers/index.ts.html +0 -91
- package/coverage/lcov-report/server/models/providers/model.ts.html +0 -211
- package/coverage/lcov-report/server/models/providers/storage.ts.html +0 -172
- package/coverage/lcov-report/server/models/reply.ts.html +0 -115
- package/coverage/lcov-report/server/models/router.ts.html +0 -313
- package/coverage/lcov-report/server/models/transports/index.html +0 -146
- package/coverage/lcov-report/server/models/transports/index.ts.html +0 -91
- package/coverage/lcov-report/server/models/transports/model.ts.html +0 -112
- package/coverage/lcov-report/server/models/transports/storage.ts.html +0 -124
- package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
- package/coverage/lcov-report/sorter.js +0 -196
- package/coverage/lcov-report/utils/common.ts.html +0 -187
- package/coverage/lcov-report/utils/index.html +0 -176
- package/coverage/lcov-report/utils/index.ts.html +0 -97
- package/coverage/lcov-report/utils/json.ts.html +0 -193
- package/coverage/lcov-report/utils/regexp.ts.html +0 -97
- package/coverage/lcov-report/utils/validation.ts.html +0 -190
- package/coverage/lcov.info +0 -3012
- package/discardedTests.txt +0 -35606
- package/images/preview.png +0 -0
- package/images/strategy.png +0 -0
- package/keploy.yml +0 -64
- package/lib/src/client/errors/connection.error.spec.d.ts +0 -2
- package/lib/src/client/errors/connection.error.spec.d.ts.map +0 -1
- package/lib/src/client/errors/connection.error.spec.js +0 -12
- package/lib/src/client/errors/connection.error.spec.js.map +0 -1
- package/lib/src/client/errors/internal-server.error.spec.d.ts +0 -2
- package/lib/src/client/errors/internal-server.error.spec.d.ts.map +0 -1
- package/lib/src/client/errors/internal-server.error.spec.js +0 -12
- package/lib/src/client/errors/internal-server.error.spec.js.map +0 -1
- package/lib/src/client/errors/validation.error.spec.d.ts +0 -2
- package/lib/src/client/errors/validation.error.spec.d.ts.map +0 -1
- package/lib/src/client/errors/validation.error.spec.js +0 -10
- package/lib/src/client/errors/validation.error.spec.js.map +0 -1
- package/lib/src/client/models/client.spec.d.ts +0 -2
- package/lib/src/client/models/client.spec.d.ts.map +0 -1
- package/lib/src/client/models/client.spec.js +0 -244
- package/lib/src/client/models/client.spec.js.map +0 -1
- package/lib/src/client/onsite.spec.d.ts +0 -2
- package/lib/src/client/onsite.spec.d.ts.map +0 -1
- package/lib/src/client/onsite.spec.js +0 -23
- package/lib/src/client/onsite.spec.js.map +0 -1
- package/lib/src/client/remote.spec.d.ts +0 -2
- package/lib/src/client/remote.spec.d.ts.map +0 -1
- package/lib/src/client/remote.spec.js +0 -16
- package/lib/src/client/remote.spec.js.map +0 -1
- package/lib/src/client/utils.spec.d.ts +0 -2
- package/lib/src/client/utils.spec.d.ts.map +0 -1
- package/lib/src/client/utils.spec.js +0 -57
- package/lib/src/client/utils.spec.js.map +0 -1
- package/lib/src/expectations/models/storage.spec.d.ts +0 -2
- package/lib/src/expectations/models/storage.spec.d.ts.map +0 -1
- package/lib/src/expectations/models/storage.spec.js +0 -57
- package/lib/src/expectations/models/storage.spec.js.map +0 -1
- package/lib/src/expectations/operators/and.operator.spec.d.ts +0 -2
- package/lib/src/expectations/operators/and.operator.spec.d.ts.map +0 -1
- package/lib/src/expectations/operators/and.operator.spec.js +0 -83
- package/lib/src/expectations/operators/and.operator.spec.js.map +0 -1
- package/lib/src/expectations/operators/exec.operator.spec.d.ts +0 -2
- package/lib/src/expectations/operators/exec.operator.spec.d.ts.map +0 -1
- package/lib/src/expectations/operators/exec.operator.spec.js +0 -68
- package/lib/src/expectations/operators/exec.operator.spec.js.map +0 -1
- package/lib/src/expectations/operators/has.operator.spec.d.ts +0 -2
- package/lib/src/expectations/operators/has.operator.spec.d.ts.map +0 -1
- package/lib/src/expectations/operators/has.operator.spec.js +0 -444
- package/lib/src/expectations/operators/has.operator.spec.js.map +0 -1
- package/lib/src/expectations/operators/if.operator.spec.d.ts +0 -2
- package/lib/src/expectations/operators/if.operator.spec.d.ts.map +0 -1
- package/lib/src/expectations/operators/if.operator.spec.js +0 -132
- package/lib/src/expectations/operators/if.operator.spec.js.map +0 -1
- package/lib/src/expectations/operators/merge.operator.spec.d.ts +0 -2
- package/lib/src/expectations/operators/merge.operator.spec.d.ts.map +0 -1
- package/lib/src/expectations/operators/merge.operator.spec.js +0 -75
- package/lib/src/expectations/operators/merge.operator.spec.js.map +0 -1
- package/lib/src/expectations/operators/not.operator.spec.d.ts +0 -2
- package/lib/src/expectations/operators/not.operator.spec.d.ts.map +0 -1
- package/lib/src/expectations/operators/not.operator.spec.js +0 -46
- package/lib/src/expectations/operators/not.operator.spec.js.map +0 -1
- package/lib/src/expectations/operators/or.operator.spec.d.ts +0 -2
- package/lib/src/expectations/operators/or.operator.spec.d.ts.map +0 -1
- package/lib/src/expectations/operators/or.operator.spec.js +0 -84
- package/lib/src/expectations/operators/or.operator.spec.js.map +0 -1
- package/lib/src/expectations/operators/remove.operator.spec.d.ts +0 -2
- package/lib/src/expectations/operators/remove.operator.spec.d.ts.map +0 -1
- package/lib/src/expectations/operators/remove.operator.spec.js +0 -67
- package/lib/src/expectations/operators/remove.operator.spec.js.map +0 -1
- package/lib/src/expectations/operators/root.operator.spec.d.ts +0 -2
- package/lib/src/expectations/operators/root.operator.spec.d.ts.map +0 -1
- package/lib/src/expectations/operators/root.operator.spec.js +0 -29
- package/lib/src/expectations/operators/root.operator.spec.js.map +0 -1
- package/lib/src/expectations/operators/set.operator.spec.d.ts +0 -2
- package/lib/src/expectations/operators/set.operator.spec.d.ts.map +0 -1
- package/lib/src/expectations/operators/set.operator.spec.js +0 -111
- package/lib/src/expectations/operators/set.operator.spec.js.map +0 -1
- package/lib/src/expectations/operators/switch.operator.spec.d.ts +0 -2
- package/lib/src/expectations/operators/switch.operator.spec.d.ts.map +0 -1
- package/lib/src/expectations/operators/switch.operator.spec.js +0 -139
- package/lib/src/expectations/operators/switch.operator.spec.js.map +0 -1
- package/lib/src/expectations/utils/location.spec.d.ts +0 -2
- package/lib/src/expectations/utils/location.spec.d.ts.map +0 -1
- package/lib/src/expectations/utils/location.spec.js +0 -62
- package/lib/src/expectations/utils/location.spec.js.map +0 -1
- package/lib/src/expectations/utils/schema.spec.d.ts +0 -2
- package/lib/src/expectations/utils/schema.spec.d.ts.map +0 -1
- package/lib/src/expectations/utils/schema.spec.js +0 -19
- package/lib/src/expectations/utils/schema.spec.js.map +0 -1
- package/lib/src/meta/model.spec.d.ts +0 -2
- package/lib/src/meta/model.spec.d.ts.map +0 -1
- package/lib/src/meta/model.spec.js +0 -28
- package/lib/src/meta/model.spec.js.map +0 -1
- package/lib/src/meta/storage.spec.d.ts +0 -2
- package/lib/src/meta/storage.spec.d.ts.map +0 -1
- package/lib/src/meta/storage.spec.js +0 -19
- package/lib/src/meta/storage.spec.js.map +0 -1
- package/lib/src/server/models/containers/model.spec.d.ts +0 -2
- package/lib/src/server/models/containers/model.spec.d.ts.map +0 -1
- package/lib/src/server/models/containers/model.spec.js +0 -79
- package/lib/src/server/models/containers/model.spec.js.map +0 -1
- package/lib/src/server/models/containers/storage.spec.d.ts +0 -2
- package/lib/src/server/models/containers/storage.spec.d.ts.map +0 -1
- package/lib/src/server/models/containers/storage.spec.js +0 -39
- package/lib/src/server/models/containers/storage.spec.js.map +0 -1
- package/lib/src/server/models/context/index.spec.d.ts +0 -2
- package/lib/src/server/models/context/index.spec.d.ts.map +0 -1
- package/lib/src/server/models/context/index.spec.js +0 -143
- package/lib/src/server/models/context/index.spec.js.map +0 -1
- package/lib/src/server/models/context/snapshot.spec.d.ts +0 -2
- package/lib/src/server/models/context/snapshot.spec.d.ts.map +0 -1
- package/lib/src/server/models/context/snapshot.spec.js +0 -75
- package/lib/src/server/models/context/snapshot.spec.js.map +0 -1
- package/lib/src/server/models/context/utils.spec.d.ts +0 -2
- package/lib/src/server/models/context/utils.spec.d.ts.map +0 -1
- package/lib/src/server/models/context/utils.spec.js +0 -69
- package/lib/src/server/models/context/utils.spec.js.map +0 -1
- package/lib/src/server/models/endpoint.spec.d.ts +0 -2
- package/lib/src/server/models/endpoint.spec.d.ts.map +0 -1
- package/lib/src/server/models/endpoint.spec.js +0 -28
- package/lib/src/server/models/endpoint.spec.js.map +0 -1
- package/lib/src/server/models/exchanges/socket-io.spec.d.ts +0 -2
- package/lib/src/server/models/exchanges/socket-io.spec.d.ts.map +0 -1
- package/lib/src/server/models/exchanges/socket-io.spec.js +0 -12
- package/lib/src/server/models/exchanges/socket-io.spec.js.map +0 -1
- package/lib/src/server/models/executor/errors/index.spec.d.ts +0 -2
- package/lib/src/server/models/executor/errors/index.spec.d.ts.map +0 -1
- package/lib/src/server/models/executor/errors/index.spec.js +0 -23
- package/lib/src/server/models/executor/errors/index.spec.js.map +0 -1
- package/lib/src/server/models/executor/index.spec.d.ts +0 -2
- package/lib/src/server/models/executor/index.spec.d.ts.map +0 -1
- package/lib/src/server/models/executor/index.spec.js +0 -137
- package/lib/src/server/models/executor/index.spec.js.map +0 -1
- package/lib/src/server/models/history/model.spec.d.ts +0 -2
- package/lib/src/server/models/history/model.spec.d.ts.map +0 -1
- package/lib/src/server/models/history/model.spec.js +0 -30
- package/lib/src/server/models/history/model.spec.js.map +0 -1
- package/lib/src/server/models/history/storage.spec.d.ts +0 -2
- package/lib/src/server/models/history/storage.spec.d.ts.map +0 -1
- package/lib/src/server/models/history/storage.spec.js +0 -42
- package/lib/src/server/models/history/storage.spec.js.map +0 -1
- package/lib/src/server/models/providers/model.spec.d.ts +0 -2
- package/lib/src/server/models/providers/model.spec.d.ts.map +0 -1
- package/lib/src/server/models/providers/model.spec.js +0 -13
- package/lib/src/server/models/providers/model.spec.js.map +0 -1
- package/lib/src/server/models/providers/storage.spec.d.ts +0 -2
- package/lib/src/server/models/providers/storage.spec.d.ts.map +0 -1
- package/lib/src/server/models/providers/storage.spec.js +0 -19
- package/lib/src/server/models/providers/storage.spec.js.map +0 -1
- package/lib/src/server/models/reply.spec.d.ts +0 -2
- package/lib/src/server/models/reply.spec.d.ts.map +0 -1
- package/lib/src/server/models/reply.spec.js +0 -20
- package/lib/src/server/models/reply.spec.js.map +0 -1
- package/lib/src/server/models/router.spec.d.ts +0 -2
- package/lib/src/server/models/router.spec.d.ts.map +0 -1
- package/lib/src/server/models/router.spec.js +0 -46
- package/lib/src/server/models/router.spec.js.map +0 -1
- package/lib/src/server/models/transports/storage.spec.d.ts +0 -2
- package/lib/src/server/models/transports/storage.spec.d.ts.map +0 -1
- package/lib/src/server/models/transports/storage.spec.js +0 -13
- package/lib/src/server/models/transports/storage.spec.js.map +0 -1
- package/lib/src/server/services/analytics.service.spec.d.ts +0 -2
- package/lib/src/server/services/analytics.service.spec.d.ts.map +0 -1
- package/lib/src/server/services/analytics.service.spec.js +0 -35
- package/lib/src/server/services/analytics.service.spec.js.map +0 -1
- package/lib/src/server/services/metrics.service.spec.d.ts +0 -2
- package/lib/src/server/services/metrics.service.spec.d.ts.map +0 -1
- package/lib/src/server/services/metrics.service.spec.js +0 -35
- package/lib/src/server/services/metrics.service.spec.js.map +0 -1
- package/lib/src/utils/index.spec.d.ts +0 -2
- package/lib/src/utils/index.spec.d.ts.map +0 -1
- package/lib/src/utils/index.spec.js +0 -30
- package/lib/src/utils/index.spec.js.map +0 -1
- package/lib/tsconfig.tsbuildinfo +0 -1
- package/lib/vite.config.d.ts +0 -3
- package/lib/vite.config.d.ts.map +0 -1
- package/lib/vite.config.js +0 -57
- package/lib/vite.config.js.map +0 -1
- package/src/client/errors/connection.error.spec.ts +0 -10
- package/src/client/errors/connection.error.ts +0 -7
- package/src/client/errors/index.ts +0 -4
- package/src/client/errors/internal-server.error.spec.ts +0 -12
- package/src/client/errors/internal-server.error.ts +0 -10
- package/src/client/errors/types.ts +0 -3
- package/src/client/errors/validation.error.spec.ts +0 -9
- package/src/client/errors/validation.error.ts +0 -10
- package/src/client/helpers/expectations.ts +0 -227
- package/src/client/helpers/index.ts +0 -1
- package/src/client/index.ts +0 -5
- package/src/client/methods/expectations-group.update.method.ts +0 -36
- package/src/client/methods/expectations.create.method.ts +0 -39
- package/src/client/methods/expectations.delete.method.ts +0 -33
- package/src/client/methods/expectations.update.method.ts +0 -58
- package/src/client/methods/index.ts +0 -6
- package/src/client/methods/ping.method.ts +0 -25
- package/src/client/models/__snapshots__/client.spec.ts.snap +0 -1294
- package/src/client/models/client.spec.ts +0 -316
- package/src/client/models/client.ts +0 -85
- package/src/client/models/index.ts +0 -2
- package/src/client/models/method.ts +0 -50
- package/src/client/onsite.spec.ts +0 -23
- package/src/client/onsite.ts +0 -29
- package/src/client/remote.spec.ts +0 -15
- package/src/client/remote.ts +0 -34
- package/src/client/types.ts +0 -31
- package/src/client/utils.spec.ts +0 -60
- package/src/client/utils.ts +0 -41
- package/src/config/index.ts +0 -34
- package/src/config/model.ts +0 -24
- package/src/expectations/__utils__/index.ts +0 -61
- package/src/expectations/errors/index.ts +0 -7
- package/src/expectations/index.ts +0 -3
- package/src/expectations/models/expectation.ts +0 -96
- package/src/expectations/models/index.ts +0 -3
- package/src/expectations/models/operator.ts +0 -89
- package/src/expectations/models/storage.spec.ts +0 -70
- package/src/expectations/models/storage.ts +0 -42
- package/src/expectations/operators/and.operator.spec.ts +0 -59
- package/src/expectations/operators/and.operator.ts +0 -37
- package/src/expectations/operators/exec.operator.spec.ts +0 -47
- package/src/expectations/operators/exec.operator.ts +0 -25
- package/src/expectations/operators/has.operator.spec.ts +0 -514
- package/src/expectations/operators/has.operator.ts +0 -230
- package/src/expectations/operators/if.operator.spec.ts +0 -116
- package/src/expectations/operators/if.operator.ts +0 -77
- package/src/expectations/operators/index.ts +0 -11
- package/src/expectations/operators/merge.operator.spec.ts +0 -48
- package/src/expectations/operators/merge.operator.ts +0 -97
- package/src/expectations/operators/not.operator.spec.ts +0 -12
- package/src/expectations/operators/not.operator.ts +0 -38
- package/src/expectations/operators/or.operator.spec.ts +0 -60
- package/src/expectations/operators/or.operator.ts +0 -37
- package/src/expectations/operators/remove.operator.spec.ts +0 -40
- package/src/expectations/operators/remove.operator.ts +0 -50
- package/src/expectations/operators/root.operator.spec.ts +0 -26
- package/src/expectations/operators/root.operator.ts +0 -51
- package/src/expectations/operators/set.operator.spec.ts +0 -96
- package/src/expectations/operators/set.operator.ts +0 -116
- package/src/expectations/operators/switch.operator.spec.ts +0 -157
- package/src/expectations/operators/switch.operator.ts +0 -126
- package/src/expectations/types.ts +0 -225
- package/src/expectations/utils/index.ts +0 -3
- package/src/expectations/utils/json.ts +0 -22
- package/src/expectations/utils/location.spec.ts +0 -64
- package/src/expectations/utils/location.ts +0 -180
- package/src/expectations/utils/schema.spec.ts +0 -17
- package/src/expectations/utils/schema.ts +0 -60
- package/src/gui/app/components/chart.component/index.ts +0 -173
- package/src/gui/app/components/chart.component/style.scss +0 -4
- package/src/gui/app/components/checkbox-area.component/index.ts +0 -101
- package/src/gui/app/components/checkbox-area.component/item.component.ts +0 -72
- package/src/gui/app/components/checkbox-area.component/style.scss +0 -19
- package/src/gui/app/components/checkbox-area.component/template.hbs +0 -3
- package/src/gui/app/components/curtain.component/index.ts +0 -19
- package/src/gui/app/components/curtain.component/style.scss +0 -14
- package/src/gui/app/components/empty.component/index.ts +0 -10
- package/src/gui/app/components/empty.component/style.scss +0 -34
- package/src/gui/app/components/empty.component/template.hbs +0 -6
- package/src/gui/app/components/expectation.component/index.ts +0 -60
- package/src/gui/app/components/expectation.component/style.scss +0 -5
- package/src/gui/app/components/expectation.component/template.hbs +0 -5
- package/src/gui/app/components/header.component/index.ts +0 -81
- package/src/gui/app/components/header.component/style.scss +0 -46
- package/src/gui/app/components/header.component/template.hbs +0 -15
- package/src/gui/app/components/history.component/index.ts +0 -86
- package/src/gui/app/components/history.component/style.scss +0 -5
- package/src/gui/app/components/history.component/template.hbs +0 -62
- package/src/gui/app/components/index.ts +0 -11
- package/src/gui/app/components/loader.component/index.ts +0 -12
- package/src/gui/app/components/loader.component/style.scss +0 -39
- package/src/gui/app/components/panel.component/index.ts +0 -52
- package/src/gui/app/components/panel.component/style.scss +0 -60
- package/src/gui/app/components/panel.component/template.hbs +0 -13
- package/src/gui/app/components/popups.component/index.ts +0 -26
- package/src/gui/app/components/popups.component/style.scss +0 -51
- package/src/gui/app/components/popups.component/template.hbs +0 -9
- package/src/gui/app/components/search.component/index.ts +0 -67
- package/src/gui/app/components/search.component/style.scss +0 -43
- package/src/gui/app/components/search.component/template.hbs +0 -7
- package/src/gui/app/components/viewer.component/index.ts +0 -28
- package/src/gui/app/components/viewer.component/style.scss +0 -38
- package/src/gui/app/components/viewer.component/template.hbs +0 -3
- package/src/gui/app/context.ts +0 -76
- package/src/gui/app/handlebars/helpers.ts +0 -32
- package/src/gui/app/handlebars/index.ts +0 -11
- package/src/gui/app/handlebars/partials/expectation-meta.hbs +0 -53
- package/src/gui/app/handlebars/partials/index.ts +0 -2
- package/src/gui/app/handlebars/partials/truncated.hbs +0 -10
- package/src/gui/app/handlebars/utils.ts +0 -9
- package/src/gui/app/main.ts +0 -38
- package/src/gui/app/models/button.ts +0 -41
- package/src/gui/app/models/client-storage.ts +0 -21
- package/src/gui/app/models/component.ts +0 -79
- package/src/gui/app/models/context.ts +0 -14
- package/src/gui/app/models/dynamic-storage.ts +0 -36
- package/src/gui/app/models/form.ts +0 -75
- package/src/gui/app/models/index.ts +0 -7
- package/src/gui/app/models/section.ts +0 -82
- package/src/gui/app/sections/analytics.section/index.ts +0 -97
- package/src/gui/app/sections/analytics.section/style.scss +0 -1
- package/src/gui/app/sections/analytics.section/template.hbs +0 -6
- package/src/gui/app/sections/expectations.section/index.ts +0 -179
- package/src/gui/app/sections/expectations.section/style.scss +0 -1
- package/src/gui/app/sections/expectations.section/template.hbs +0 -15
- package/src/gui/app/sections/history.section/index.ts +0 -175
- package/src/gui/app/sections/history.section/style.scss +0 -10
- package/src/gui/app/sections/history.section/templates/actions.hbs +0 -5
- package/src/gui/app/sections/history.section/templates/section.hbs +0 -15
- package/src/gui/app/sections/index.ts +0 -4
- package/src/gui/app/sections/settings.section/index.ts +0 -63
- package/src/gui/app/sections/settings.section/style.scss +0 -24
- package/src/gui/app/sections/settings.section/templates/cache.hbs +0 -6
- package/src/gui/app/sections/settings.section/templates/section.hbs +0 -6
- package/src/gui/app/sections/settings.section/templates/stats.hbs +0 -6
- package/src/gui/app/setup.ts +0 -7
- package/src/gui/app/tsconfig.json +0 -20
- package/src/gui/app/types/dev.ts +0 -6
- package/src/gui/app/types/index.ts +0 -1
- package/src/gui/app/types/window.global.ts +0 -9
- package/src/gui/app/utils.ts +0 -15
- package/src/gui/assets/fa-all.css +0 -5
- package/src/gui/assets/fa-regular-400.woff2 +0 -0
- package/src/gui/assets/fa-solid-900.woff2 +0 -0
- package/src/gui/assets/favicon.png +0 -0
- package/src/gui/index.html +0 -18
- package/src/gui/styles/_constants.scss +0 -11
- package/src/gui/styles/_elements.scss +0 -216
- package/src/gui/styles/_soon.scss +0 -35
- package/src/gui/styles/main.scss +0 -245
- package/src/index.ts +0 -9
- package/src/logger/index.ts +0 -80
- package/src/logger/types.ts +0 -4
- package/src/logger/utils.ts +0 -25
- package/src/meta/index.ts +0 -6
- package/src/meta/model.spec.ts +0 -28
- package/src/meta/model.ts +0 -29
- package/src/meta/storage.spec.ts +0 -18
- package/src/meta/storage.ts +0 -20
- package/src/server/endpoints/cache.delete.endpoint.ts +0 -54
- package/src/server/endpoints/cache.usage.get.endpoint.ts +0 -12
- package/src/server/endpoints/config.get.endpoint.ts +0 -10
- package/src/server/endpoints/expectations-group.update.endpoint.ts +0 -32
- package/src/server/endpoints/expectations.create.endpoint.ts +0 -23
- package/src/server/endpoints/expectations.delete.endpoint.ts +0 -12
- package/src/server/endpoints/expectations.get-list.endpoint.ts +0 -15
- package/src/server/endpoints/expectations.update.endpoint.ts +0 -29
- package/src/server/endpoints/gui.endpoint.ts +0 -76
- package/src/server/endpoints/history.delete.endpoint.ts +0 -10
- package/src/server/endpoints/history.get-list.endpoint.ts +0 -15
- package/src/server/endpoints/index.ts +0 -18
- package/src/server/endpoints/metrics.endpoint.ts +0 -12
- package/src/server/endpoints/ping.endpoint.ts +0 -7
- package/src/server/endpoints/stats.endpoint.ts +0 -20
- package/src/server/index.ts +0 -182
- package/src/server/models/containers/index.ts +0 -2
- package/src/server/models/containers/model.spec.ts +0 -81
- package/src/server/models/containers/model.ts +0 -79
- package/src/server/models/containers/storage.spec.ts +0 -41
- package/src/server/models/containers/storage.ts +0 -59
- package/src/server/models/containers/utils.ts +0 -4
- package/src/server/models/context/index.spec.ts +0 -171
- package/src/server/models/context/index.ts +0 -136
- package/src/server/models/context/snapshot.spec.ts +0 -84
- package/src/server/models/context/snapshot.ts +0 -148
- package/src/server/models/context/types.ts +0 -65
- package/src/server/models/context/utils.spec.ts +0 -77
- package/src/server/models/context/utils.ts +0 -99
- package/src/server/models/endpoint.spec.ts +0 -28
- package/src/server/models/endpoint.ts +0 -69
- package/src/server/models/exchanges/index.ts +0 -1
- package/src/server/models/exchanges/socket-io.spec.ts +0 -13
- package/src/server/models/exchanges/socket-io.ts +0 -14
- package/src/server/models/executor/errors/index.spec.ts +0 -23
- package/src/server/models/executor/errors/index.ts +0 -15
- package/src/server/models/executor/index.spec.ts +0 -148
- package/src/server/models/executor/index.ts +0 -297
- package/src/server/models/history/index.ts +0 -2
- package/src/server/models/history/model.spec.ts +0 -35
- package/src/server/models/history/model.ts +0 -82
- package/src/server/models/history/storage.spec.ts +0 -41
- package/src/server/models/history/storage.ts +0 -38
- package/src/server/models/index.ts +0 -11
- package/src/server/models/providers/index.ts +0 -2
- package/src/server/models/providers/model.spec.ts +0 -11
- package/src/server/models/providers/model.ts +0 -33
- package/src/server/models/providers/storage.spec.ts +0 -21
- package/src/server/models/providers/storage.ts +0 -34
- package/src/server/models/reply.spec.ts +0 -17
- package/src/server/models/reply.ts +0 -10
- package/src/server/models/router.spec.ts +0 -50
- package/src/server/models/router.ts +0 -79
- package/src/server/models/service.ts +0 -5
- package/src/server/models/transports/index.ts +0 -2
- package/src/server/models/transports/model.ts +0 -9
- package/src/server/models/transports/storage.spec.ts +0 -14
- package/src/server/models/transports/storage.ts +0 -13
- package/src/server/services/analytics.service.spec.ts +0 -38
- package/src/server/services/analytics.service.ts +0 -58
- package/src/server/services/index.ts +0 -2
- package/src/server/services/metrics.service.spec.ts +0 -42
- package/src/server/services/metrics.service.ts +0 -46
- package/src/server/transports/http.transport/context.ts +0 -72
- package/src/server/transports/http.transport/executor.ts +0 -156
- package/src/server/transports/http.transport/index.ts +0 -53
- package/src/server/transports/index.ts +0 -3
- package/src/server/transports/internal/http.transport/context.ts +0 -50
- package/src/server/transports/internal/http.transport/executor.ts +0 -56
- package/src/server/transports/internal/http.transport/index.ts +0 -23
- package/src/server/transports/internal/http.transport/reply.ts +0 -82
- package/src/server/transports/internal/index.ts +0 -2
- package/src/server/transports/internal/io.transport/context.ts +0 -40
- package/src/server/transports/internal/io.transport/executor.ts +0 -27
- package/src/server/transports/internal/io.transport/index.ts +0 -36
- package/src/server/transports/internal/io.transport/reply.ts +0 -26
- package/src/server/transports/internal/utils.ts +0 -6
- package/src/server/transports/ws.transport/context.ts +0 -90
- package/src/server/transports/ws.transport/executor.ts +0 -64
- package/src/server/transports/ws.transport/index.ts +0 -105
- package/src/server/types/index.ts +0 -32
- package/src/server/utils/index.ts +0 -35
- package/src/utils/index.spec.ts +0 -31
- package/src/utils/index.ts +0 -51
- package/test/index.ts +0 -299
- package/test/providers/index.ts +0 -2
- package/test/providers/root.ts +0 -241
- package/test/providers/statics.ts +0 -37
- package/tsconfig.json +0 -108
- package/tsconfig.tsbuildinfo +0 -1
- package/types/common.ts +0 -127
- package/types/index.ts +0 -1
- package/vite.config.ts +0 -64
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"switch.operator.spec.js","sourceRoot":"","sources":["../../../../src/expectations/operators/switch.operator.spec.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,mDAAqC;AAErC,QAAQ,CAAC,+BAA+B,EAAE,GAAG,EAAE;IAC7C,QAAQ,CAAC,UAAU,EAAE,GAAG,EAAE;QACxB,EAAE,CAAC,oDAAoD,EAAE,GAAG,EAAE;YAC5D,MAAM,QAAQ,GAAG,IAAI,SAAS,CAAC,OAAO,CAAM,SAAS,EAAE;gBACrD,SAAS,EAAE,eAAe;gBAC1B,KAAK,EAAE,SAAS;gBAEhB,MAAM,EAAE;oBACN,GAAG,EAAE,EAAE,IAAI,EAAE,EAAE,SAAS,EAAE,eAAe,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,EAAE;oBACxE,GAAG,EAAE,EAAE,IAAI,EAAE,EAAE,SAAS,EAAE,eAAe,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,EAAE;iBACzE;gBAED,QAAQ,EAAE,EAAE,KAAK,EAAE,GAAG,EAAE,CAAC,IAAI,EAAE;aAChC,CAAC,CAAC;YAEH,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,QAAQ,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC,CAAC,UAAU,EAAE,CAAC;YAChE,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,QAAQ,EAAE,EAAE,IAAI,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC,CAAC,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AG,CAAC,CAAC;YAEf,MAAM,CACJ,QAAQ,CAAC,UAAU,CAAM,EAAE,QAAQ,EAAE,EAAE,IAAI,EAAE,EAAE,GAAG,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,GAAG,CAC1F,CAAC,aAAa,EAAE,CAAC;QACpB,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAA;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"location.spec.d.ts","sourceRoot":"","sources":["../../../../src/expectations/utils/location.spec.ts"],"names":[],"mappings":""}
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const location_1 = require("./location");
|
|
4
|
-
// Test generated using Keploy
|
|
5
|
-
it('should return false for undefined location in context', () => {
|
|
6
|
-
const context = { incoming: {} };
|
|
7
|
-
const result = (0, location_1.checkIsLocationInContext)('nonexistent', context);
|
|
8
|
-
expect(result).toBe(false);
|
|
9
|
-
});
|
|
10
|
-
// Test generated using Keploy
|
|
11
|
-
it('should return expected context for valid path', () => {
|
|
12
|
-
const context = {
|
|
13
|
-
incoming: {
|
|
14
|
-
path: '/api/test',
|
|
15
|
-
method: 'GET',
|
|
16
|
-
},
|
|
17
|
-
};
|
|
18
|
-
const result = (0, location_1.extractContextByLocation)('path', context);
|
|
19
|
-
expect(result).toEqual({
|
|
20
|
-
key: 'incoming.path',
|
|
21
|
-
type: 'string',
|
|
22
|
-
parent: context,
|
|
23
|
-
value: '/api/test',
|
|
24
|
-
});
|
|
25
|
-
});
|
|
26
|
-
// Test generated using Keploy
|
|
27
|
-
it('should return null for invalid location', () => {
|
|
28
|
-
const context = {};
|
|
29
|
-
const result = (0, location_1.extractContextByLocation)('invalid.location', context);
|
|
30
|
-
expect(result).toBeNull();
|
|
31
|
-
});
|
|
32
|
-
// Test generated using Keploy
|
|
33
|
-
it('should return correct context for method location', () => {
|
|
34
|
-
const context = {
|
|
35
|
-
incoming: {
|
|
36
|
-
method: 'GET',
|
|
37
|
-
},
|
|
38
|
-
};
|
|
39
|
-
const result = (0, location_1.extractContextByLocation)('method', context);
|
|
40
|
-
expect(result).toEqual({
|
|
41
|
-
key: 'incoming.method',
|
|
42
|
-
type: 'string',
|
|
43
|
-
parent: context,
|
|
44
|
-
value: 'GET',
|
|
45
|
-
});
|
|
46
|
-
});
|
|
47
|
-
// Test generated using Keploy
|
|
48
|
-
it('should return correct context for outgoing.data location', () => {
|
|
49
|
-
const context = {
|
|
50
|
-
outgoing: {
|
|
51
|
-
data: { key: 'value' },
|
|
52
|
-
},
|
|
53
|
-
};
|
|
54
|
-
const result = (0, location_1.extractContextByLocation)('outgoing.data', context);
|
|
55
|
-
expect(result).toEqual({
|
|
56
|
-
key: 'outgoing.data',
|
|
57
|
-
type: 'object',
|
|
58
|
-
parent: context,
|
|
59
|
-
value: { key: 'value' },
|
|
60
|
-
});
|
|
61
|
-
});
|
|
62
|
-
//# sourceMappingURL=location.spec.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"location.spec.js","sourceRoot":"","sources":["../../../../src/expectations/utils/location.spec.ts"],"names":[],"mappings":";;AAAA,yCAAgF;AAEhF,8BAA8B;AAC9B,EAAE,CAAC,uDAAuD,EAAE,GAAG,EAAE;IAC/D,MAAM,OAAO,GAAG,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC;IACjC,MAAM,MAAM,GAAG,IAAA,mCAAwB,EAAM,aAAa,EAAO,OAAO,CAAC,CAAC;IAC1E,MAAM,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;AAC7B,CAAC,CAAC,CAAC;AAEH,8BAA8B;AAC9B,EAAE,CAAC,+CAA+C,EAAE,GAAG,EAAE;IACvD,MAAM,OAAO,GAAG;QACd,QAAQ,EAAE;YACR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MAAM,CAAC,CAAC,OAAO,CAAC;QACrB,GAAG,EAAE,eAAe;QACpB,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,OAAO;QACf,KAAK,EAAE,EAAE,GAAG,EAAE,OAAO,EAAE;KACxB,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"schema.spec.d.ts","sourceRoot":"","sources":["../../../../src/expectations/utils/schema.spec.ts"],"names":[],"mappings":""}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const schema_1 = require("./schema");
|
|
4
|
-
// Test generated using Keploy
|
|
5
|
-
it('should serialize $exec functions in the schema', () => {
|
|
6
|
-
const schema = {
|
|
7
|
-
$exec: () => { },
|
|
8
|
-
nested: {
|
|
9
|
-
$exec: () => { },
|
|
10
|
-
$has: {
|
|
11
|
-
$exec: () => { },
|
|
12
|
-
},
|
|
13
|
-
},
|
|
14
|
-
};
|
|
15
|
-
const result = (0, schema_1.serializeExpectationSchema)(schema);
|
|
16
|
-
expect(result.nested.$exec).toBeDefined();
|
|
17
|
-
expect(result.nested.$has.$exec).toBeDefined();
|
|
18
|
-
});
|
|
19
|
-
//# sourceMappingURL=schema.spec.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"schema.spec.js","sourceRoot":"","sources":["../../../../src/expectations/utils/schema.spec.ts"],"names":[],"mappings":";;AAAA,qCAAsD;AAEtD,8BAA8B;AAC9B,EAAE,CAAC,gDAAgD,EAAE,GAAG,EAAE;IACxD,MAAM,MAAM,GAAG;QACb,KAAK,EAAE,GAAG,EAAE,GAAE,CAAC;QACf,MAAM,EAAE;YACN,KAAK,EAAE,GAAG,EAAE,GAAE,CAAC;YACf,IAAI,EAAE;gBACJ,KAAK,EAAE,GAAG,EAAE,GAAE,CAAC;aAChB;SACF;KACF,CAAC;IACF,MAAM,MAAM,GAAG,IAAA,mCAA0B,EAAC,MAAM,CAAC,CAAC;IAClD,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,WAAW,EAAE,CAAC;IAC1C,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,WAAW,EAAE,CAAC;AACjD,CAAC,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"model.spec.d.ts","sourceRoot":"","sources":["../../../src/meta/model.spec.ts"],"names":[],"mappings":""}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const model_1 = require("./model");
|
|
4
|
-
// Test generated using Keploy
|
|
5
|
-
test('test_merge_with_valid_context', () => {
|
|
6
|
-
const meta = new model_1.MetaContext();
|
|
7
|
-
const context = { requestId: '12345', operationId: '67890' };
|
|
8
|
-
meta.merge(context);
|
|
9
|
-
expect(meta.requestId).toBe('12345');
|
|
10
|
-
expect(meta.operationId).toBe('67890');
|
|
11
|
-
});
|
|
12
|
-
// Test generated using Keploy
|
|
13
|
-
test('test_pick_single_property', () => {
|
|
14
|
-
const meta = new model_1.MetaContext();
|
|
15
|
-
meta.requestId = 'abc';
|
|
16
|
-
meta.operationId = 'xyz';
|
|
17
|
-
const result = meta.pick(['requestId']);
|
|
18
|
-
expect(result).toEqual({ requestId: 'abc' });
|
|
19
|
-
expect(result).not.toHaveProperty('operationId');
|
|
20
|
-
});
|
|
21
|
-
// Test generated using Keploy
|
|
22
|
-
test('test_build_with_provided_values', () => {
|
|
23
|
-
const context = { requestId: 'customId', operationId: 'customOperation' };
|
|
24
|
-
const meta = model_1.MetaContext.build(context);
|
|
25
|
-
expect(meta.requestId).toBe('customId');
|
|
26
|
-
expect(meta.operationId).toBe('customOperation');
|
|
27
|
-
});
|
|
28
|
-
//# sourceMappingURL=model.spec.js.map
|
|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,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;IACxC,MAAM,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC;AACnD,CAAC,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"storage.spec.d.ts","sourceRoot":"","sources":["../../../src/meta/storage.spec.ts"],"names":[],"mappings":""}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const storage_1 = require("./storage");
|
|
4
|
-
const model_1 = require("./model");
|
|
5
|
-
// Test generated using Keploy
|
|
6
|
-
test('wrap should execute the handler with the generated context', () => {
|
|
7
|
-
const storage = new storage_1.MetaStorage();
|
|
8
|
-
const mockHandler = jest.fn();
|
|
9
|
-
storage.wrap({}, mockHandler);
|
|
10
|
-
expect(mockHandler).toHaveBeenCalled();
|
|
11
|
-
});
|
|
12
|
-
// Test generated using Keploy
|
|
13
|
-
test('generate should return the same MetaContext instance when provided', () => {
|
|
14
|
-
const storage = new storage_1.MetaStorage();
|
|
15
|
-
const existingContext = new model_1.MetaContext();
|
|
16
|
-
const context = storage.generate(existingContext);
|
|
17
|
-
expect(context).toBe(existingContext);
|
|
18
|
-
});
|
|
19
|
-
//# sourceMappingURL=storage.spec.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"storage.spec.js","sourceRoot":"","sources":["../../../src/meta/storage.spec.ts"],"names":[],"mappings":";;AAAA,uCAAwC;AACxC,mCAAsC;AAEtC,8BAA8B;AAC9B,IAAI,CAAC,4DAA4D,EAAE,GAAG,EAAE;IACtE,MAAM,OAAO,GAAG,IAAI,qBAAW,EAAE,CAAC;IAClC,MAAM,WAAW,GAAG,IAAI,CAAC,EAAE,EAAE,CAAC;IAC9B,OAAO,CAAC,IAAI,CAAC,EAAE,EAAE,WAAW,CAAC,CAAC;IAC9B,MAAM,CAAC,WAAW,CAAC,CAAC,gBAAgB,EAAE,CAAC;AACzC,CAAC,CAAC,CAAC;AAEH,8BAA8B;AAC9B,IAAI,CAAC,oEAAoE,EAAE,GAAG,EAAE;IAC9E,MAAM,OAAO,GAAG,IAAI,qBAAW,EAAE,CAAC;IAClC,MAAM,eAAe,GAAG,IAAI,mBAAW,EAAE,CAAC;IAC1C,MAAM,OAAO,GAAG,OAAO,CAAC,QAAQ,CAAC,eAAe,CAAC,CAAC;IAClD,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;AACxC,CAAC,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"model.spec.d.ts","sourceRoot":"","sources":["../../../../../src/server/models/containers/model.spec.ts"],"names":[],"mappings":""}
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const model_1 = require("./model");
|
|
4
|
-
// Test generated using Keploy
|
|
5
|
-
test('should initialize Container with correct properties', () => {
|
|
6
|
-
const provided = {
|
|
7
|
-
key: 'testKey',
|
|
8
|
-
payload: { data: 'testData' },
|
|
9
|
-
ttl: 100,
|
|
10
|
-
timestamp: Date.now(),
|
|
11
|
-
prefix: 'testPrefix',
|
|
12
|
-
hooks: {
|
|
13
|
-
onBind: jest.fn(),
|
|
14
|
-
onUnbind: jest.fn(),
|
|
15
|
-
},
|
|
16
|
-
};
|
|
17
|
-
const container = new model_1.Container(provided);
|
|
18
|
-
expect(container.key).toBe('testPrefixtestKey');
|
|
19
|
-
expect(container.payload).toEqual(provided.payload);
|
|
20
|
-
expect(container.ttl).toBe(provided.ttl);
|
|
21
|
-
expect(container.expiresAt).toBe(provided.timestamp + provided.ttl * 1000);
|
|
22
|
-
});
|
|
23
|
-
// Test generated using Keploy
|
|
24
|
-
test('should merge payload correctly', () => {
|
|
25
|
-
const provided = {
|
|
26
|
-
key: 'testKey',
|
|
27
|
-
payload: { data: 'initialData' },
|
|
28
|
-
ttl: 100,
|
|
29
|
-
timestamp: Date.now(),
|
|
30
|
-
};
|
|
31
|
-
const container = new model_1.Container(provided);
|
|
32
|
-
const merged = container.merge({ data: 'newData' });
|
|
33
|
-
expect(merged.payload.data).toBe('newData');
|
|
34
|
-
});
|
|
35
|
-
// Test generated using Keploy
|
|
36
|
-
test('should assign new payload to Container', () => {
|
|
37
|
-
const provided = {
|
|
38
|
-
key: 'testKey',
|
|
39
|
-
payload: { data: 'initialData' },
|
|
40
|
-
ttl: 100,
|
|
41
|
-
timestamp: Date.now(),
|
|
42
|
-
};
|
|
43
|
-
const container = new model_1.Container(provided);
|
|
44
|
-
container.assign({ data: 'updatedData' });
|
|
45
|
-
expect(container.payload.data).toBe('updatedData');
|
|
46
|
-
});
|
|
47
|
-
// Test generated using Keploy
|
|
48
|
-
test('should call onBind hook when binding', () => {
|
|
49
|
-
const onBindMock = jest.fn();
|
|
50
|
-
const provided = {
|
|
51
|
-
key: 'testKey',
|
|
52
|
-
payload: {},
|
|
53
|
-
ttl: 100,
|
|
54
|
-
timestamp: Date.now(),
|
|
55
|
-
hooks: {
|
|
56
|
-
onBind: onBindMock,
|
|
57
|
-
},
|
|
58
|
-
};
|
|
59
|
-
const container = new model_1.Container(provided);
|
|
60
|
-
container.bind('testLink');
|
|
61
|
-
expect(onBindMock).toHaveBeenCalled();
|
|
62
|
-
});
|
|
63
|
-
// Test generated using Keploy
|
|
64
|
-
test('should call onUnbind hook when unbinding', () => {
|
|
65
|
-
const onUnbindMock = jest.fn();
|
|
66
|
-
const provided = {
|
|
67
|
-
key: 'testKey',
|
|
68
|
-
payload: {},
|
|
69
|
-
ttl: 100,
|
|
70
|
-
timestamp: Date.now(),
|
|
71
|
-
hooks: {
|
|
72
|
-
onUnbind: onUnbindMock,
|
|
73
|
-
},
|
|
74
|
-
};
|
|
75
|
-
const container = new model_1.Container(provided);
|
|
76
|
-
container.unbind();
|
|
77
|
-
expect(onUnbindMock).toHaveBeenCalled();
|
|
78
|
-
});
|
|
79
|
-
//# sourceMappingURL=model.spec.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"model.spec.js","sourceRoot":"","sources":["../../../../../src/server/models/containers/model.spec.ts"],"names":[],"mappings":";;AAAA,mCAAoC;AAEpC,8BAA8B;AAC9B,IAAI,CAAC,qDAAqD,EAAE,GAAG,EAAE;IAC/D,MAAM,QAAQ,GAAG;QACf,GAAG,EAAE,SAAS;QACd,OAAO,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE;QAC7B,GAAG,EAAE,GAAG;QACR,SAAS,EAAE,IAAI,CAAC,GAAG,EAAE;QACrB,MAAM,EAAE,YAAY;QACpB,KAAK,EAAE;YACL,MAAM,EAAE,IAAI,CAAC,EAAE,EAAE;YACjB,QAAQ,EAAE,IAAI,CAAC,EAAE,EAAE;SACpB;KACF,CAAC;IACF,MAAM,SAAS,GAAG,IAAI,iBAAS,CAAC,QAAQ,CAAC,CAAC;IAC1C,MAAM,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,mBAAmB,CAAC,CAAC;IAChD,MAAM,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;IACpD,MAAM,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC;IACzC,MAAM,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,SAAS,GAAG,QAAQ,CAAC,GAAG,GAAG,IAAI,CAAC,CAAC;AAC7E,CAAC,CAAC,CAAC;AAEH,8BAA8B;AAC9B,IAAI,CAAC,gCAAgC,EAAE,GAAG,EAAE;IAC1C,MAAM,QAAQ,GAAG;QACf,GAAG,EAAE,SAAS;QACd,OAAO,EAAE,EAAE,IAAI,EA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IAAI,CAAC,UAAU,CAAC,CAAC;IAC3B,MAAM,CAAC,UAAU,CAAC,CAAC,gBAAgB,EAAE,CAAC;AACxC,CAAC,CAAC,CAAC;AAEH,8BAA8B;AAC9B,IAAI,CAAC,0CAA0C,EAAE,GAAG,EAAE;IACpD,MAAM,YAAY,GAAG,IAAI,CAAC,EAAE,EAAE,CAAC;IAC/B,MAAM,QAAQ,GAAG;QACf,GAAG,EAAE,SAAS;QACd,OAAO,EAAE,EAAE;QACX,GAAG,EAAE,GAAG;QACR,SAAS,EAAE,IAAI,CAAC,GAAG,EAAE;QACrB,KAAK,EAAE;YACL,QAAQ,EAAE,YAAY;SACvB;KACF,CAAC;IACF,MAAM,SAAS,GAAG,IAAI,iBAAS,CAAC,QAAQ,CAAC,CAAC;IAC1C,SAAS,CAAC,MAAM,EAAE,CAAC;IACnB,MAAM,CAAC,YAAY,CAAC,CAAC,gBAAgB,EAAE,CAAC;AAC1C,CAAC,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"storage.spec.d.ts","sourceRoot":"","sources":["../../../../../src/server/models/containers/storage.spec.ts"],"names":[],"mappings":""}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const storage_1 = require("./storage");
|
|
4
|
-
// Test generated using Keploy
|
|
5
|
-
test('register method increases storage size correctly', () => {
|
|
6
|
-
const storage = new storage_1.ContainersStorage();
|
|
7
|
-
const config = {
|
|
8
|
-
key: 'test-key',
|
|
9
|
-
payload: { data: 'test data' },
|
|
10
|
-
ttl: 3600,
|
|
11
|
-
};
|
|
12
|
-
storage.register(config);
|
|
13
|
-
expect(storage.size).toBe(1);
|
|
14
|
-
});
|
|
15
|
-
// Test generated using Keploy
|
|
16
|
-
test('provide method reuses existing container', () => {
|
|
17
|
-
const storage = new storage_1.ContainersStorage();
|
|
18
|
-
const config = { key: 'test-key', payload: { data: 'test data' } };
|
|
19
|
-
const container1 = storage.provide(config);
|
|
20
|
-
const container2 = storage.provide(config);
|
|
21
|
-
expect(container1).toBe(container2);
|
|
22
|
-
expect(storage.size).toBe(1);
|
|
23
|
-
});
|
|
24
|
-
// Test generated using Keploy
|
|
25
|
-
test('delete method removes container and decreases size', () => {
|
|
26
|
-
const storage = new storage_1.ContainersStorage();
|
|
27
|
-
const config = { key: 'test-key', payload: { data: 'test data' } };
|
|
28
|
-
storage.register(config);
|
|
29
|
-
expect(storage.size).toBe(1);
|
|
30
|
-
storage.delete('test-key');
|
|
31
|
-
expect(storage.size).toBe(0);
|
|
32
|
-
});
|
|
33
|
-
// Test generated using Keploy
|
|
34
|
-
test('getExpired method returns empty array when no containers are expired', () => {
|
|
35
|
-
const storage = new storage_1.ContainersStorage();
|
|
36
|
-
const result = storage.getExpired();
|
|
37
|
-
expect(result).toEqual([]);
|
|
38
|
-
});
|
|
39
|
-
//# sourceMappingURL=storage.spec.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"storage.spec.js","sourceRoot":"","sources":["../../../../../src/server/models/containers/storage.spec.ts"],"names":[],"mappings":";;AAAA,uCAA8C;AAE9C,8BAA8B;AAC9B,IAAI,CAAC,kDAAkD,EAAE,GAAG,EAAE;IAC5D,MAAM,OAAO,GAAG,IAAI,2BAAiB,EAAE,CAAC;IACxC,MAAM,MAAM,GAAG;QACb,GAAG,EAAE,UAAU;QACf,OAAO,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE;QAC9B,GAAG,EAAE,IAAI;KACV,CAAC;IACF,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;IACzB,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAC/B,CAAC,CAAC,CAAC;AAEH,8BAA8B;AAC9B,IAAI,CAAC,0CAA0C,EAAE,GAAG,EAAE;IACpD,MAAM,OAAO,GAAG,IAAI,2BAAiB,EA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.spec.d.ts","sourceRoot":"","sources":["../../../../../src/server/models/context/index.spec.ts"],"names":[],"mappings":""}
|
|
@@ -1,143 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const index_1 = require("./index");
|
|
4
|
-
class TestRequestContext extends index_1.RequestContext {
|
|
5
|
-
constructor() {
|
|
6
|
-
super(...arguments);
|
|
7
|
-
this.incoming = {
|
|
8
|
-
type: 'plain',
|
|
9
|
-
path: '/',
|
|
10
|
-
method: 'NONE',
|
|
11
|
-
headers: {},
|
|
12
|
-
};
|
|
13
|
-
this.snapshot = this.compileSnapshot();
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
// Test generated using Keploy
|
|
17
|
-
test('switchStatus method should correctly change status and return the instance', () => {
|
|
18
|
-
const providerMock = { storages: { containers: {}, history: { register: jest.fn() } }, server: { databases: { redis: {} }, exchanges: { io: { publish: jest.fn() } } } };
|
|
19
|
-
const configurationMock = { transport: {}, event: {} };
|
|
20
|
-
const context = new TestRequestContext(providerMock, configurationMock);
|
|
21
|
-
const result = context.switchStatus('handling');
|
|
22
|
-
expect(context.status).toBe('handling');
|
|
23
|
-
expect(result).toBe(context);
|
|
24
|
-
});
|
|
25
|
-
// Test generated using Keploy
|
|
26
|
-
test('compileSnapshot method should create a valid snapshot with proper properties', () => {
|
|
27
|
-
const providerMock = { storages: { containers: {}, history: { register: jest.fn() } }, server: { databases: { redis: {} }, exchanges: { io: { publish: jest.fn() } } } };
|
|
28
|
-
const configurationMock = { transport: {}, event: {} };
|
|
29
|
-
const context = new TestRequestContext(providerMock, configurationMock);
|
|
30
|
-
context.incoming = { type: 'testType' };
|
|
31
|
-
const snapshot = context.compileSnapshot();
|
|
32
|
-
expect(snapshot.transport).toBe(context.transport);
|
|
33
|
-
expect(snapshot.event).toBe(context.event);
|
|
34
|
-
expect(snapshot.flags).toEqual(context.flags);
|
|
35
|
-
expect(snapshot.incoming).toEqual(context.incoming);
|
|
36
|
-
expect(snapshot.outgoing.stream).toBeDefined();
|
|
37
|
-
expect(snapshot.incoming.stream).toBeDefined();
|
|
38
|
-
});
|
|
39
|
-
// Test generated using Keploy
|
|
40
|
-
test('compileHistory method should register history with the correct snapshot', () => {
|
|
41
|
-
const providerMock = {
|
|
42
|
-
storages: {
|
|
43
|
-
containers: {},
|
|
44
|
-
history: {
|
|
45
|
-
register: jest.fn().mockReturnValue({})
|
|
46
|
-
}
|
|
47
|
-
},
|
|
48
|
-
server: {
|
|
49
|
-
databases: { redis: {} },
|
|
50
|
-
exchanges: { io: { publish: jest.fn() } }
|
|
51
|
-
}
|
|
52
|
-
};
|
|
53
|
-
const configurationMock = { transport: {}, event: {} };
|
|
54
|
-
const context = new TestRequestContext(providerMock, configurationMock);
|
|
55
|
-
context.incoming = { type: 'testType' };
|
|
56
|
-
const history = context.compileHistory();
|
|
57
|
-
expect(providerMock.storages.history.register).toHaveBeenCalledWith(expect.objectContaining({
|
|
58
|
-
timestamp: context.timestamp,
|
|
59
|
-
snapshot: expect.anything()
|
|
60
|
-
}));
|
|
61
|
-
expect(history).toBe(context.provider.storages.history.register.mock.results[0].value);
|
|
62
|
-
});
|
|
63
|
-
// Test generated using Keploy
|
|
64
|
-
test('compileCacheConfiguration returns disabled when cache is not enabled or expectation is missing', () => {
|
|
65
|
-
const providerMock = {
|
|
66
|
-
storages: { containers: {} },
|
|
67
|
-
server: {
|
|
68
|
-
databases: { redis: null },
|
|
69
|
-
exchanges: { io: { publish: jest.fn() } }
|
|
70
|
-
}
|
|
71
|
-
};
|
|
72
|
-
const configurationMock = { transport: {}, event: {} };
|
|
73
|
-
const context = new TestRequestContext(providerMock, configurationMock);
|
|
74
|
-
context.snapshot = {
|
|
75
|
-
cache: { isEnabled: false },
|
|
76
|
-
incoming: { type: 'GET' },
|
|
77
|
-
outgoing: {}
|
|
78
|
-
};
|
|
79
|
-
const result = context.compileCacheConfiguration();
|
|
80
|
-
expect(result).toEqual({ isEnabled: false });
|
|
81
|
-
});
|
|
82
|
-
// Test generated using Keploy
|
|
83
|
-
test('hasStatuses method correctly identifies if current status is in the given list', () => {
|
|
84
|
-
const providerMock = {
|
|
85
|
-
storages: { containers: {}, history: { register: jest.fn() } },
|
|
86
|
-
server: { databases: { redis: {} }, exchanges: { io: { publish: jest.fn() } } }
|
|
87
|
-
};
|
|
88
|
-
const configurationMock = { transport: {}, event: {} };
|
|
89
|
-
const context = new TestRequestContext(providerMock, configurationMock);
|
|
90
|
-
context.switchStatus('completed');
|
|
91
|
-
const result = context.hasStatuses(['registered', 'completed']);
|
|
92
|
-
expect(result).toBe(true);
|
|
93
|
-
});
|
|
94
|
-
// Test generated using Keploy
|
|
95
|
-
test('complete method completes streams and switches status to completed', () => {
|
|
96
|
-
const providerMock = {
|
|
97
|
-
storages: {
|
|
98
|
-
containers: {},
|
|
99
|
-
history: { register: jest.fn() }
|
|
100
|
-
},
|
|
101
|
-
server: {
|
|
102
|
-
databases: { redis: {} },
|
|
103
|
-
exchanges: { io: { publish: jest.fn() } }
|
|
104
|
-
}
|
|
105
|
-
};
|
|
106
|
-
const configurationMock = { transport: {}, event: {} };
|
|
107
|
-
const context = new TestRequestContext(providerMock, configurationMock);
|
|
108
|
-
context.incoming = { type: 'testType' };
|
|
109
|
-
context.snapshot = {
|
|
110
|
-
outgoing: {}
|
|
111
|
-
};
|
|
112
|
-
context.complete();
|
|
113
|
-
expect(context.hasStatuses(['completed'])).toBe(true);
|
|
114
|
-
expect(context.streams.incoming.isStopped).toBe(true);
|
|
115
|
-
expect(context.streams.outgoing.isStopped).toBe(true);
|
|
116
|
-
});
|
|
117
|
-
// Test generated using Keploy
|
|
118
|
-
test('assign method correctly assigns properties to the context', () => {
|
|
119
|
-
const providerMock = { storages: { containers: {}, history: { register: jest.fn() } }, server: { databases: { redis: {} }, exchanges: { io: { publish: jest.fn() } } } };
|
|
120
|
-
const configurationMock = { transport: {}, event: {} };
|
|
121
|
-
const context = new TestRequestContext(providerMock, configurationMock);
|
|
122
|
-
const payload = { incoming: { type: 'newType' }, outgoing: { type: 'newOutgoing' } };
|
|
123
|
-
context.assign(payload);
|
|
124
|
-
expect(context.incoming).toEqual(payload.incoming);
|
|
125
|
-
expect(context.outgoing).toEqual(payload.outgoing);
|
|
126
|
-
});
|
|
127
|
-
// Test generated using Keploy
|
|
128
|
-
test('skip method switches status to skipped', () => {
|
|
129
|
-
const providerMock = { storages: { containers: {}, history: { register: jest.fn() } }, server: { databases: { redis: {} }, exchanges: { io: { publish: jest.fn() } } } };
|
|
130
|
-
const configurationMock = { transport: {}, event: {} };
|
|
131
|
-
const context = new TestRequestContext(providerMock, configurationMock);
|
|
132
|
-
context.skip();
|
|
133
|
-
expect(context.status).toBe('skipped');
|
|
134
|
-
});
|
|
135
|
-
// Test generated using Keploy
|
|
136
|
-
test('handle method switches status to handling', () => {
|
|
137
|
-
const providerMock = { storages: { containers: {}, history: { register: jest.fn() } }, server: { databases: { redis: {} }, exchanges: { io: { publish: jest.fn() } } } };
|
|
138
|
-
const configurationMock = { transport: {}, event: {} };
|
|
139
|
-
const context = new TestRequestContext(providerMock, configurationMock);
|
|
140
|
-
context.handle();
|
|
141
|
-
expect(context.status).toBe('handling');
|
|
142
|
-
});
|
|
143
|
-
//# sourceMappingURL=index.spec.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.spec.js","sourceRoot":"","sources":["../../../../../src/server/models/context/index.spec.ts"],"names":[],"mappings":";;AAAA,mCAAkE;AAElE,MAAM,kBAAmB,SAAQ,sBAAc;IAA/C;;QACS,aAAQ,GAA4B;YACzC,IAAI,EAAE,OAAO;YACb,IAAI,EAAE,GAAG;YACT,MAAM,EAAE,MAAM;YACd,OAAO,EAAE,EAAE;SACZ,CAAC;QAEK,aAAQ,GAAG,IAAI,CAAC,eAAe,EAAE,CAAC;IAC3C,CAAC;CAAA;AAED,8BAA8B;AAC9B,IAAI,CAAC,4EAA4E,EAAE,GAAG,EAAE;IACtF,M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,EAAE,UAAU,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,QAAQ,EAAE,IAAI,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,IAAI,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC;IACzK,MAAM,iBAAiB,GAAG,EAAE,SAAS,EAAE,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC;IACvD,MAAM,OAAO,GAAG,IAAI,kBAAkB,CAAM,YAAY,EAAE,iBAAiB,CAAC,CAAC;IAE7E,OAAO,CAAC,MAAM,EAAE,CAAC;IAEjB,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;AAC1C,CAAC,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"snapshot.spec.d.ts","sourceRoot":"","sources":["../../../../../src/server/models/context/snapshot.spec.ts"],"names":[],"mappings":""}
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const snapshot_1 = require("./snapshot");
|
|
4
|
-
// Test generated using Keploy
|
|
5
|
-
it('should correctly assign new values to the instance', () => {
|
|
6
|
-
const instance = new snapshot_1.RequestContextSnapshot({
|
|
7
|
-
transport: 'http',
|
|
8
|
-
event: 'connect',
|
|
9
|
-
incoming: {},
|
|
10
|
-
outgoing: {},
|
|
11
|
-
storage: {},
|
|
12
|
-
flags: {}
|
|
13
|
-
});
|
|
14
|
-
instance.assign({ transport: 'https', flags: { newFlag: true } });
|
|
15
|
-
expect(instance.transport).toBe('https');
|
|
16
|
-
expect(instance.flags?.newFlag).toBe(true);
|
|
17
|
-
});
|
|
18
|
-
// Test generated using Keploy
|
|
19
|
-
it('should return only the specified keys', () => {
|
|
20
|
-
const instance = new snapshot_1.RequestContextSnapshot({
|
|
21
|
-
transport: 'http',
|
|
22
|
-
event: 'connect',
|
|
23
|
-
incoming: {},
|
|
24
|
-
outgoing: {},
|
|
25
|
-
storage: {},
|
|
26
|
-
flags: {}
|
|
27
|
-
});
|
|
28
|
-
const picked = instance.pick(['transport', 'flags']);
|
|
29
|
-
expect(picked).toEqual({
|
|
30
|
-
transport: 'http',
|
|
31
|
-
flags: {}
|
|
32
|
-
});
|
|
33
|
-
});
|
|
34
|
-
// Test generated using Keploy
|
|
35
|
-
it('should omit specified keys', () => {
|
|
36
|
-
const instance = new snapshot_1.RequestContextSnapshot({
|
|
37
|
-
transport: 'http',
|
|
38
|
-
event: 'connect',
|
|
39
|
-
incoming: {},
|
|
40
|
-
outgoing: {},
|
|
41
|
-
storage: {},
|
|
42
|
-
flags: {}
|
|
43
|
-
});
|
|
44
|
-
const omitted = instance.omit(['transport']);
|
|
45
|
-
expect(omitted.transport).toBeUndefined();
|
|
46
|
-
expect(omitted.event).toBe('connect');
|
|
47
|
-
});
|
|
48
|
-
// Test generated using Keploy
|
|
49
|
-
it('should unset specified keys', () => {
|
|
50
|
-
const instance = new snapshot_1.RequestContextSnapshot({
|
|
51
|
-
transport: 'http',
|
|
52
|
-
event: 'connect',
|
|
53
|
-
incoming: {},
|
|
54
|
-
outgoing: {},
|
|
55
|
-
storage: {},
|
|
56
|
-
flags: {}
|
|
57
|
-
});
|
|
58
|
-
instance.unset(['transport']);
|
|
59
|
-
expect(instance.transport).toBeUndefined();
|
|
60
|
-
});
|
|
61
|
-
// Test generated using Keploy
|
|
62
|
-
it('should clone the instance correctly', () => {
|
|
63
|
-
const instance = new snapshot_1.RequestContextSnapshot({
|
|
64
|
-
transport: 'http',
|
|
65
|
-
event: 'connect',
|
|
66
|
-
incoming: {},
|
|
67
|
-
outgoing: {},
|
|
68
|
-
storage: {},
|
|
69
|
-
flags: {}
|
|
70
|
-
});
|
|
71
|
-
const cloneInstance = instance.clone();
|
|
72
|
-
expect(cloneInstance).not.toBe(instance);
|
|
73
|
-
expect(cloneInstance.transport).toBe(instance.transport);
|
|
74
|
-
});
|
|
75
|
-
//# sourceMappingURL=snapshot.spec.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"snapshot.spec.js","sourceRoot":"","sources":["../../../../../src/server/models/context/snapshot.spec.ts"],"names":[],"mappings":";;AAAA,yCAAoD;AAEpD,8BAA8B;AAC9B,EAAE,CAAC,oDAAoD,EAAE,GAAG,EAAE;IAC5D,MAAM,QAAQ,GAAG,IAAI,iCAAsB,CAAC;QAC1C,SAAS,EAAE,MAAM;QACjB,KAAK,EAAE,SAAS;QAChB,QAAQ,EAAO,EAAE;QACjB,QAAQ,EAAO,EAAE;QACjB,OAAO,EAAO,EAAE;QAChB,KAAK,EAAE,EAAE;KACV,CAAC,CAAC;IAEH,QAAQ,CAAC,MAAM,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE,CAAC,CAAC;IAElE,MAAM,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACzC,MAAM,CAAC,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAC7C,CAAC,CAAC,CAAC;AAEH,8BAA8B;AAC9B,EAAE,CAAC,uCAAuC,EAAE,GAAG,EAAE;IAC/C,MAAM,QAAQ,GAAG,IAAI,iCAAsB,CAAC;QAC1C,SAAS,EAAE,MAAM;QACjB,KAAK,EAAE,SAAS;QAChB,QAAQ,EAAO,EAAE;QACjB,QAAQ,EAAO,EAAE;QACjB,OAAO,EAAO,EAAE;QAChB,KAAK,EAAE,EAAE;KACV,CAAC,CAAC;IAEH,MAAM,MAAM,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC,WAAW,EAAE,OAAO,CAAC,CAA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