Versie 0.2.0
This commit is contained in:
commit
e77d8fd373
495 files changed
+81026
No files matched your search
@@ -0,0 +1,23 @@
|
||||
// Generated, do not edit. sha256:17b1281e54996148b279858b457fd106d4d2e1b529ec53afb0ad51df4cdcbc22
|
||||
const PREFS = new URL('../../client/data/preferences.js', import.meta.url).href;
|
||||
const APP_SETTINGS = new URL('../../client/app-settings.js', import.meta.url).href;
|
||||
|
||||
async function laad() {
|
||||
const { loadAppSettings } = await import(APP_SETTINGS);
|
||||
await loadAppSettings();
|
||||
}
|
||||
|
||||
export async function vasteRekenvaluta(mock, baseCurrency = 'EUR') {
|
||||
mock.module(PREFS, { namedExports: {
|
||||
getSettings: async () => ({ baseCurrency }),
|
||||
getPref: async () => null,
|
||||
setPref: async () => {},
|
||||
} });
|
||||
await laad();
|
||||
}
|
||||
|
||||
export async function rekenvalutaUitDatabase(mock) {
|
||||
const server = await import(new URL('../../server/data/preferences.js', import.meta.url).href);
|
||||
mock.module(PREFS, { namedExports: server });
|
||||
await laad();
|
||||
}
|
||||
Reference in new issue
Block a user