Skip to content

Commit

Permalink
test: fix failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
adriansberg committed Sep 22, 2023
1 parent 6044200 commit 1544d8d
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/page-modules/departures/__tests__/departure.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,15 @@ describe('departure page', function () {
autocompleteFeatures: [
{
name: 'Result 1',
category: [],
layer: '',
locality: '',
},
{
name: 'Result 2',
category: [],
layer: '',
locality: '',
},
],
headersAcceptLanguage: 'en',
Expand All @@ -36,7 +42,9 @@ describe('departure page', function () {
});

it('Should return props from getServerSideProps', async () => {
const expectedResult = [{ name: 'Test' }];
const expectedResult = [
{ name: 'Test', category: [], layer: '', locality: '' },
];

const client: HttpClient<'entur', AutocompleteApi> = {
async autocomplete() {
Expand Down

0 comments on commit 1544d8d

Please sign in to comment.