Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | 17x 3x 10x | /**
* MSW Request Handlers
*
* Default mock handlers for API requests.
* Individual tests can override these using server.use() in their test files.
*/
import { http, HttpResponse } from 'msw';
export const handlers = [
// Default handler for readConfKey
http.post('/api/readConfKey', () => {
return HttpResponse.json({
interfaceStyle: 'quiqr10-light',
dataFolder: '~/Quiqr',
showSplashAtStartup: true,
libraryView: 'cards',
});
}),
// Default handler for saveConfPrefKey
http.post('/api/saveConfPrefKey', () => {
return HttpResponse.json(true);
}),
];
|