feat(dashboard): customise widget visibility order and size
This commit is contained in:
@@ -37,6 +37,9 @@ jest.mock('./components/MicrosoftAuthCard', () => () => null);
|
||||
beforeEach(() => {
|
||||
const { api } = require('./api');
|
||||
api.get.mockImplementation((url: string) => {
|
||||
if (url === '/auth/preferences/dashboard') {
|
||||
return Promise.resolve({ data: { version: 1, revision: 0, widgets: [] } });
|
||||
}
|
||||
if (url === '/auth/config') {
|
||||
return Promise.resolve({ data: { requireAuth: false, googleEnabled: false, microsoftEnabled: false, localEnabled: true, allowRegistration: false } });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user