Make existing and new issue URLs configurable (#10710)
* Make existing and new issue URLs configurable * Apply a deep merge over sdk config to allow sane nested structures * Defaultize * Fix types * Iterate * Add FeedbackDialog snapshot test * Add SdkConfig snapshot tests * Iterate * Fix tests * Iterate types * Fix test
This commit is contained in:
parent
e4610e4672
commit
6166dbb661
23 changed files with 259 additions and 78 deletions
|
@ -20,6 +20,8 @@ import BasePlatform from "../../../src/BasePlatform";
|
|||
import { IConfigOptions } from "../../../src/IConfigOptions";
|
||||
import { getDeviceClientInformation, recordClientInformation } from "../../../src/utils/device/clientInformation";
|
||||
import { getMockClientWithEventEmitter } from "../../test-utils";
|
||||
import { DEFAULTS } from "../../../src/SdkConfig";
|
||||
import { DeepReadonly } from "../../../src/@types/common";
|
||||
|
||||
describe("recordClientInformation()", () => {
|
||||
const deviceId = "my-device-id";
|
||||
|
@ -31,7 +33,8 @@ describe("recordClientInformation()", () => {
|
|||
setAccountData: jest.fn(),
|
||||
});
|
||||
|
||||
const sdkConfig: IConfigOptions = {
|
||||
const sdkConfig: DeepReadonly<IConfigOptions> = {
|
||||
...DEFAULTS,
|
||||
brand: "Test Brand",
|
||||
element_call: { url: "", use_exclusively: false, brand: "Element Call" },
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue