1 | "use strict";
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 |
|
15 |
|
16 |
|
17 | Object.defineProperty(exports, "__esModule", { value: true });
|
18 | exports.fakeCommandListenerInvocation = void 0;
|
19 | const addressChannels_1 = require("../../api/context/addressChannels");
|
20 | const parameterPrompt_1 = require("../../api/context/parameterPrompt");
|
21 | const preferenceStore_1 = require("../../api/context/preferenceStore");
|
22 | const skillContext_1 = require("../../api/context/skillContext");
|
23 | const fakeContext_1 = require("./fakeContext");
|
24 | function fakeCommandListenerInvocation(opts = {}) {
|
25 | return Object.assign(Object.assign({ commandName: opts.commandName || "test", parameters: opts.parameters, context: fakeContext_1.fakeContext(), configuration: {}, addressChannels: addressChannels_1.AddressNoChannels, promptFor: parameterPrompt_1.NoParameterPrompt, preferences: preferenceStore_1.NoPreferenceStore, credentials: opts.credentials }, opts), { skill: skillContext_1.createSkillContext(fakeContext_1.fakeContext()) });
|
26 | }
|
27 | exports.fakeCommandListenerInvocation = fakeCommandListenerInvocation;
|
28 |
|
\ | No newline at end of file |