(core) remove duplicate HostedStorageManager test from monorepo tests

Summary: This test has been added to core. This diff also updates some storage-related code in monorepo to match changes in core.

Test Plan: moving test

Reviewers: georgegevoian

Reviewed By: georgegevoian

Differential Revision: https://phab.getgrist.com/D3746
This commit is contained in:
Paul Fitzpatrick 2022-12-27 12:56:51 -05:00
parent 9451fb9597
commit 7ef3c92b51

View File

@ -394,7 +394,7 @@ describe('HostedStorageManager', function() {
function requireStorage<T>(storage: T|undefined): T {
if (storage === undefined) { throw new Error('storage not found'); }
return storage;
};
}
switch (storage) {
case 'cached': {
// Make an in-memory store that is slow and aggressively cached.
@ -898,7 +898,7 @@ describe('HostedStorageManager', function() {
const doc = await store.docManager.fetchDoc(docSession, docId);
await doc.waitForInitialization();
const rec = await doc.fetchTable(makeExceptionalDocSession('system'), '_grist_DocInfo');
const tz = rec[3].timezone[0];
const tz = rec.tableData[3].timezone[0];
const h = (await doc.getRecentStates(makeExceptionalDocSession('system')))[0].h;
await store.docManager.makeBackup(doc, 'hello');
await store.end();