Skip to content

Commit

Permalink
ahjo decision links (#498)
Browse files Browse the repository at this point in the history
  • Loading branch information
NC-jsAhonen authored Jun 28, 2024
1 parent cdc8682 commit 85cc7b6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/util/helpers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ export const getApiUrlWithOutVersionSuffix = (): string => {
* @returns {string}
*/
export const getReferenceNumberLink = (referenceNumber: string | null | undefined): string | null | undefined => {
const apiUrl = 'https://dev.hel.fi/paatokset/asia';
const apiUrl = 'https://paatokset.hel.fi/asia';
return referenceNumber ? `${apiUrl}/${referenceNumber.replace(' ', '-').toLowerCase()}` : null;
};

Expand Down
4 changes: 2 additions & 2 deletions src/util/spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -609,8 +609,8 @@ describe('utils', () => {
expect(formatDateRange(null, null)).to.deep.equal('');
});
it('should get reference number link', () => {
expect(getReferenceNumberLink('123')).to.deep.equal('https://dev.hel.fi/paatokset/asia/123');
expect(getReferenceNumberLink('123 456')).to.deep.equal('https://dev.hel.fi/paatokset/asia/123-456');
expect(getReferenceNumberLink('123')).to.deep.equal('https://paatokset.hel.fi/asia/123');
expect(getReferenceNumberLink('123 456')).to.deep.equal('https://paatokset.hel.fi/asia/123-456');
expect(getReferenceNumberLink(null)).to.deep.equal(null);
});
it('should find item from collection by id', () => {
Expand Down

0 comments on commit 85cc7b6

Please sign in to comment.