diff --git a/frontend/src/views/camp/__tests__/Dashboard.spec.js b/frontend/src/views/camp/__tests__/Dashboard.spec.js index 22f05f6d06..e98272b576 100644 --- a/frontend/src/views/camp/__tests__/Dashboard.spec.js +++ b/frontend/src/views/camp/__tests__/Dashboard.spec.js @@ -38,6 +38,13 @@ const AUTH = { function createCampWithRole(role) { return () => ({ campCollaborations: () => ({ + _meta: { + self: '/campCollaborations?camp=%2Fapi%2Fcamps%2F6973c230d6b1', + load: Promise.resolve({ + allItems: [], + }), + loading: false, + }, items: [ { role: role, @@ -46,6 +53,42 @@ function createCampWithRole(role) { }, ], }), + categories: () => ({ + _meta: { + self: '/categories?camp=%2Fapi%2Fcamps%2F6973c230d6b1', + load: Promise.resolve({ + allItems: [], + }), + loading: false, + }, + }), + periods: () => ({ + _meta: { + self: '/periods?camp=%2Fapi%2Fcamps%2F6973c230d6b1', + load: Promise.resolve({ + allItems: [], + }), + loading: false, + }, + }), + progressLabels: () => ({ + _meta: { + self: '/progressLabels?camp=%2Fapi%2Fcamps%2F6973c230d6b1', + load: Promise.resolve({ + allItems: [], + }), + loading: false, + }, + }), + activities: () => ({ + _meta: { + self: '/activities?camp=%2Fapi%2Fcamps%2F6973c230d6b1', + load: Promise.resolve({ + allItems: [], + }), + loading: false, + }, + }), }) } @@ -58,11 +101,10 @@ const DEFAULT_DASHBOARD_OPTIONS = () => ({ $auth: AUTH, $route: ROUTE(), $router: ROUTER(), - $tc: () => {}, + $tc: () => '', api: { reload: () => Promise.resolve() }, }, data: () => ({ - loggedInUser: USER, loading: false, filter: { period: null,