Skip to content

Commit

Permalink
Update helpers.test.js
Browse files Browse the repository at this point in the history
  • Loading branch information
ksuess committed Jun 23, 2024
1 parent 6315a51 commit 8dff275
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/components/helpers.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,14 @@ const { settings } = config;
describe('helpers', () => {
describe('flattenESUrlToPath', () => {
it('flattens a given URL to the app URL', () => {
// TODO
// expect(flattenESUrlToPath(`${settings.apiPath}/edit`)).toBe('/edit');
expect(
flattenESUrlToPath(
'http://host.docker.internal:17091/Plone/news/sprint-on-accessibility',
),
).toBe('/news/sprint-on-accessibility');
expect(flattenESUrlToPath('https://nzz.ch/arosa/piste')).toBe(
'/arosa/piste',
);
});
});
});

0 comments on commit 8dff275

Please sign in to comment.