Skip to content

Commit d4deb41

Browse files
SCAL-227038 test for customCSSUrl @p0 @SCAL-226935 (#40)
Co-authored-by: ShashiSubramanya <[email protected]>
1 parent da5933f commit d4deb41

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/embed/base.spec.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -411,6 +411,18 @@ describe('Base TS Embed', () => {
411411
});
412412
expect(embedConfigInstance.getEmbedConfig().inPopup).toBe(false);
413413
});
414+
test('@P0 @SCAL-226935 embedConfig should contain correct value of customCSSUrl when added in init ', async () => {
415+
index.init({
416+
thoughtSpotHost,
417+
authType: index.AuthType.None,
418+
customizations: {
419+
style: {
420+
customCSSUrl: 'test.com',
421+
},
422+
},
423+
});
424+
expect(embedConfigInstance.getEmbedConfig().customizations.style.customCSSUrl).toEqual('test.com');
425+
});
414426
});
415427

416428
describe('Base without init', () => {

0 commit comments

Comments
 (0)