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

thoughtspot / visual-embed-sdk / #1466

17 Jan 2025 05:14AM UTC coverage: 41.223% (-52.6%) from 93.86%
#1466

Pull #65

Prashant.patil
SCAL-233454-exp removing all extra config and checking
Pull Request #65: test-exported memb

266 of 1114 branches covered (23.88%)

Branch coverage included in aggregate %.

74 of 367 new or added lines in 15 files covered. (20.16%)

1012 existing lines in 23 files now uncovered.

1291 of 2663 relevant lines covered (48.48%)

9.07 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;
25✔
5
let nativeConfig = {} as WebViewConfig;
25✔
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;
28✔
14
export const getMobileEmbedConfig = (): WebViewConfig => nativeConfig;
25✔
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) => {
25✔
24
    config = newConfig;
1✔
25
    return newConfig;
1✔
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) => {
25✔
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

© 2026 Coveralls, Inc