style: fix linting issues met Prettier
This commit is contained in:
parent
0e2f9e5359
commit
3d3bf6dba4
1 changed files with 24 additions and 23 deletions
|
@ -49,13 +49,13 @@ describe('fetchLearningPaths', () => {
|
|||
});
|
||||
|
||||
describe('searchLearningPaths', () => {
|
||||
const query = 'https://dwengo.org/backend/api/learningPath/getPathsFromIdList?pathIdList=%7B%22hruids%22:%5B%22pn_werking%22,%22un_artificiele_intelligentie%22%5D%7D&language=nl';
|
||||
const query =
|
||||
'https://dwengo.org/backend/api/learningPath/getPathsFromIdList?pathIdList=%7B%22hruids%22:%5B%22pn_werking%22,%22un_artificiele_intelligentie%22%5D%7D&language=nl';
|
||||
const language = 'nl';
|
||||
|
||||
it('✅ Should return search results when API responds with data', async () => {
|
||||
|
||||
|
||||
const mockResults = [{
|
||||
const mockResults = [
|
||||
{
|
||||
_id: '67b4488c9dadb305c4104618',
|
||||
language: 'nl',
|
||||
hruid: 'pn_werking',
|
||||
|
@ -68,8 +68,9 @@ describe('searchLearningPaths', () => {
|
|||
target_ages: [14, 15, 16, 17, 18],
|
||||
min_age: 14,
|
||||
max_age: 18,
|
||||
__order: 0
|
||||
}];
|
||||
__order: 0,
|
||||
},
|
||||
];
|
||||
|
||||
// Mock fetchWithLogging to return search results
|
||||
vi.mocked(fetchWithLogging).mockResolvedValue(mockResults);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue