We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 735d46c commit fb9b3d6Copy full SHA for fb9b3d6
src/pages/scientificServices/pipelines/common/zendeskUtils.test.tsx
@@ -0,0 +1,18 @@
1
+import { DocsKey, zendeskUrl } from 'src/pages/scientificServices/pipelines/common/zendeskUtils';
2
+
3
+describe('zendeskUtils', () => {
4
+ describe('zendeskUrl', () => {
5
+ it('returns the correct URL for INPUT_REQ', () => {
6
+ expect(zendeskUrl(DocsKey.INPUT_REQ)).toBe(
7
+ 'https://broadscientificservices.zendesk.com/hc/en-us/articles/40161675448859'
8
+ );
9
+ });
10
11
+ it('returns the default URL for an unknown DocsKey', () => {
12
+ // @ts-expect-error Testing invalid key
13
+ expect(zendeskUrl('UNKNOWN_KEY')).toBe(
14
+ 'https://broadscientificservices.zendesk.com/hc/en-us/sections/39901025462171' // Getting Started URL
15
16
17
18
+});
0 commit comments