deno.land / x / replicache@v10.0.0-beta.0 / sync / client-id.test.ts

client-id.test.ts
نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import {expect} from '@esm-bundle/chai';import {MemStore} from '../kv/mod';import {init} from './client-id';
test('init client ID', async () => { const ms = new MemStore(); const cid1 = await init(ms); const cid2 = await init(ms); expect(cid1).to.equal(cid2); const ms2 = new MemStore(); const cid3 = await init(ms2); expect(cid1).to.not.equal(cid3);});
replicache

Version Info

Tagged at
2 years ago