mirror of
https://github.com/bulwarkmail/webmail.git
synced 2026-11-04 00:14:12 +00:00
13 lines
419 B
TypeScript
13 lines
419 B
TypeScript
import { createLocalStore, resetLocalStoreForTests } from '../local';
|
|
import { runStoreContract } from './contract';
|
|
|
|
runStoreContract({
|
|
name: 'local (memory + files)',
|
|
makeStores: (n) => {
|
|
// One process: every handle is the same store, as every module copy is.
|
|
const store = createLocalStore();
|
|
return Array.from({ length: n }, () => store);
|
|
},
|
|
cleanup: async () => resetLocalStoreForTests(),
|
|
});
|