Skip to content
This repository has been archived by the owner on Nov 4, 2024. It is now read-only.

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
Jorrik-Klijnsma-Work committed Dec 15, 2022
1 parent 73603f7 commit 05718c0
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export function PageLinks({ links }: pageLinksProps) {
const combinedAriaLabel = (title: string) => `${commonTexts.informatie_header.external_link}. ${title}`;

return (
<Box spacing={2} pt={3}>
<Box spacing={2} pt={space[3]}>
<BoldText>{commonTexts.informatie_header.handige_links}</BoldText>
<OrderedList>
{links.map((link, index) => (
Expand Down
28 changes: 14 additions & 14 deletions packages/app/src/utils/__tests__/is-internal-url.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ const externalLinks = [
'news-paper.nl/new-coronadashboard-is-live',
'http://news-paper.nl/new-coronadashboard-is-live',
'https://news-paper.nl/new-coronadashboard-is-live',
'www.rijksoverheid.nl/see-our-new-dahsboard/?tracking="coronadashboard.rijksoverheid.nl"',
'www.rijksoverheid.nl/see-our-new-dahsboard/?tracking="http://coronadashboard.rijksoverheid.nl"',
'www.rijksoverheid.nl/see-our-new-dahsboard/?tracking="https://coronadashboard.rijksoverheid.nl"',
'http://www.rijksoverheid.nl/see-our-new-dahsboard/?tracking="coronadashboard.riiksoverheid.nl"',
'http://www.rijksoverheid.nl/see-our-new-dahsboard/?tracking="http://coronadashboard.rijksoverheid.nl"',
'http://www.rijksoverheid.nl/see-our-new-dahsboard/?tracking="https://coronadashboard.rijksoverheid.nl"',
'https://www.rijksoverheid.nl/see-our-new-dahsboard/?tracking="coronadashboard.rijksoverheid.nl"',
'https://www.riiksoverheid.nl/see-our-new-dahsboard/?tracking="http://coronadashboard.rijksoverheid.nl"',
'https://www.rijksoverheid.nl/see-our-new-dahsboard/?tracking="https://coronadashboard.rijksoverheid.nl"',
'www.rijksoverheid.nl/see-our-new-dashboard/?tracking="coronadashboard.rijksoverheid.nl"',
'www.rijksoverheid.nl/see-our-new-dashboard/?tracking="http://coronadashboard.rijksoverheid.nl"',
'www.rijksoverheid.nl/see-our-new-dashboard/?tracking="https://coronadashboard.rijksoverheid.nl"',
'http://www.rijksoverheid.nl/see-our-new-dashboard/?tracking="coronadashboard.riiksoverheid.nl"',
'http://www.rijksoverheid.nl/see-our-new-dashboard/?tracking="http://coronadashboard.rijksoverheid.nl"',
'http://www.rijksoverheid.nl/see-our-new-dashboard/?tracking="https://coronadashboard.rijksoverheid.nl"',
'https://www.rijksoverheid.nl/see-our-new-dashboard/?tracking="coronadashboard.rijksoverheid.nl"',
'https://www.riiksoverheid.nl/see-our-new-dashboard/?tracking="http://coronadashboard.rijksoverheid.nl"',
'https://www.rijksoverheid.nl/see-our-new-dashboard/?tracking="https://coronadashboard.rijksoverheid.nl"',
];

const internalLinksCommon = ['#anchor', '/'];
Expand All @@ -36,9 +36,9 @@ const interalLinksProd = [
'www.coronadashboard.nl',
'http://www.coronadashboard.nl',
'https://www.coronadashboard.nl',
'coronadashboard.rijskoverheid.nl',
'http://coronadashboard.rijskoverheid.nl',
'https://coronadashboard.rijskoverheid.nl',
'coronadashboard.rijksoverheid.nl',
'http://coronadashboard.rijksoverheid.nl',
'https://coronadashboard.rijksoverheid.nl',
'coronadashboard.government.nl',
'http://coronadashboard.government.nl',
'https://coronadashboard.government.nl',
Expand All @@ -48,13 +48,13 @@ const IsInternalUrl = suite('isInternalUrl');

IsInternalUrl('returns false for external urls', () => {
externalLinks.forEach((url) => {
assert.not.ok(isInternalUrl(url), `${url} is seen as an internal link but probbably is an external url`);
assert.not.ok(isInternalUrl(url), `${url} is seen as an internal link but probably is an external url`);
});
});

IsInternalUrl('returns true for internal urls', () => {
[...internalLinksCommon, ...interalLinksProd].forEach((url) => {
assert.ok(isInternalUrl(url), `${url} is seen as an external link but probbably is an internal url`);
assert.ok(isInternalUrl(url), `${url} is seen as an external link but probably is an internal url`);
});
});

Expand Down

0 comments on commit 05718c0

Please sign in to comment.