import { Bootstrapper, DBCache } from '../../lib/patch-db' export class MockBootstrapper implements Bootstrapper { constructor ( private sequence: number = 0, private data: T = { } as T, ) { } async init (): Promise> { return { sequence: this.sequence, data: this.data as T, } } async update (cache: DBCache): Promise { this.sequence = cache.sequence this.data = cache.data } }