feat(vacay): implement Nager.Holidays v4 integration and adapt holiday data structure

This commit is contained in:
Luffy
2026-11-11 17:39:14 +08:00
committed by Maurice
parent be305c3daf
commit a3622e91b6
8 changed files with 405 additions and 222 deletions
@@ -169,7 +169,7 @@ describe('MAdminAddonManager', () => {
const user = userEvent.setup();
server.use(
addonsRoute([buildAddon({ id: 'todo', enabled: true })]),
http.put('/api/admin/addons/todo', () => HttpResponse.error()),
http.put('/api/admin/addons/todo', () => HttpResponse.json({ error: 'boom' }, { status: 500 })),
);
render(<><ToastContainer /><MAdminAddonManager /></>);
await screen.findByText('Todo List');