• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

thoughtspot / visual-embed-sdk / #1337

03 Jan 2025 06:00AM UTC coverage: 90.769% (-2.9%) from 93.701%
#1337

Pull #65

yinstardev
SCAL-233454-exp temp-testcases skip
Pull Request #65: test-exported memb

918 of 1087 branches covered (84.45%)

Branch coverage included in aggregate %.

76 of 135 new or added lines in 7 files covered. (56.3%)

19 existing lines in 2 files now uncovered.

2376 of 2542 relevant lines covered (93.47%)

52.69 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

80.0
/src/embed/embedConfig.ts
1
import { WebViewConfig } from 'src/native/types';
2
import { EmbedConfig } from '../types';
3

4
let config = {} as EmbedConfig;
26✔
5
let nativeConfig = {} as WebViewConfig;
26✔
6

7
/**
8
 * Gets the configuration embed was initialized with.
9
 * @returns {@link EmbedConfig} The configuration embed was initialized with.
10
 * @version SDK: 1.19.0 | ThoughtSpot: *
11
 * @group Global methods
12
 */
13
export const getEmbedConfig = (): EmbedConfig => config;
837✔
14
export const getMobileEmbedConfig = (): WebViewConfig => nativeConfig;
26✔
15

16
/**
17
 * Sets the configuration embed was initialized with.
18
 * And returns the new configuration.
19
 * @param newConfig The configuration to set.
20
 * @version SDK: 1.27.0 | ThoughtSpot: *
21
 * @group Global methods
22
 */
23
export const setEmbedConfig = (newConfig: EmbedConfig) => {
26✔
24
    config = newConfig;
58✔
25
    return newConfig;
58✔
26
};
27

28
/**
29
 * Sets the configuration embed was initialized with.
30
 * And returns the new configuration.
31
 * @param newConfig The configuration to set.
32
 * @version SDK: 1.35.3 | ThoughtSpot: 10.6.0.cl
33
 * @group Global methods
34
 */
35
export const setMobileEmbedConfig = (newConfig: WebViewConfig) => {
26✔
NEW
36
    nativeConfig = newConfig;
×
NEW
37
    return newConfig;
×
38
};
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc