gristlabs_grist-core/app/client/lib/testState.ts

12 lines
334 B
TypeScript
Raw Permalink Normal View History

import {get as getBrowserGlobals} from 'app/client/lib/browserGlobals';
import {TestState} from 'app/common/TestState';
const G = getBrowserGlobals('window');
export function setTestState(state: Partial<TestState>) {
if (!('testGrist' in G.window)) {
G.window.testGrist = {};
}
Object.assign(G.window.testGrist, state);
}