Skip to content

Commit fb9b3d6

Browse files
committed
tests
1 parent 735d46c commit fb9b3d6

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)