Update mock server

This commit is contained in:
Fedor Indutny
2026-03-03 16:44:01 -08:00
committed by GitHub
parent 0b5b7dc137
commit 0c76e68d87
43 changed files with 901 additions and 328 deletions

View File

@@ -64,7 +64,7 @@ describe('storage service', function (this: Mocha.Suite) {
after: initialState,
});
{
assert.strictEqual(postMessageState.version, 2);
assert.strictEqual(postMessageState.version, 2n);
assert.isFalse(postMessageState.getContact(stranger)?.whitelisted);
assert.strictEqual(
postMessageState.getContact(stranger)?.profileKey?.length,
@@ -85,7 +85,7 @@ describe('storage service', function (this: Mocha.Suite) {
const nextState = await phone.waitForStorageState({
after: postMessageState,
});
assert.strictEqual(nextState.version, 3);
assert.strictEqual(nextState.version, 3n);
assert.isTrue(nextState.getContact(stranger)?.whitelisted);
// ContactRecord
@@ -128,6 +128,6 @@ describe('storage service', function (this: Mocha.Suite) {
debug('Verifying the final manifest version');
const finalState = await phone.expectStorageState('consistency check');
assert.strictEqual(finalState.version, 3);
assert.strictEqual(finalState.version, 3n);
});
});