From 884d63704472ddda08aad335b83a2972cdbc7534 Mon Sep 17 00:00:00 2001 From: jbernava Date: Sun, 2 Jul 2023 22:45:10 +0200 Subject: [PATCH 1/2] :sparkles: Added $history from testSuite to jovo instance. --- framework/src/testsuite/TestSuite.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/framework/src/testsuite/TestSuite.ts b/framework/src/testsuite/TestSuite.ts index 5fbd110435..7b006ba0c2 100644 --- a/framework/src/testsuite/TestSuite.ts +++ b/framework/src/testsuite/TestSuite.ts @@ -222,6 +222,7 @@ export class TestSuite extends Plugin< _merge(jovo.$session, this.$session); _merge(jovo.$request, this.$request); _merge(jovo.$data, this.$data); + _merge(jovo.$history, this.$history); _merge(jovo.$app.data, this.$app.data); jovo.$request.setUserId(this.config.userId); From fbac8b1a40a344b284bd114fa45610fbcfee9c92 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20K=C3=B6nig?= Date: Mon, 18 Sep 2023 15:21:41 +0200 Subject: [PATCH 2/2] :memo: Add history to test suite docs --- docs/unit-testing.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/unit-testing.md b/docs/unit-testing.md index 6b2c4ff6fc..382c4cfc1a 100644 --- a/docs/unit-testing.md +++ b/docs/unit-testing.md @@ -558,6 +558,7 @@ Currently, you can modify the following properties that will be merged into the - `testSuite.$session` for [session data](./data.md#session-data) - `testSuite.$request` - `testSuite.$data` for [request data](./data.md#request-data) +- `testSuite.$history` for [history data](./data.md#history) You can also override your app config using the `$app` property. This is especially helpful when used with [dependency injection](./service-providers-dependency-injection.md): @@ -568,4 +569,4 @@ testSuite.$app.configure({providers: [{ provide: OrderService, useClass: MockOrderService, }]}) -``` \ No newline at end of file +```