Documentation
    Preparing search index...

    Interface MockStatePersistenceControls

    Inspection controls attached to the mock persistence as mock.

    const persistence = createMockStatePersistence();
    persistence.set('napplet-state:feed:abc:draft', 'hello');
    persistence.mock.state().get('napplet-state:feed:abc:draft'); // 'hello'
    persistence.mock.reset();
    interface MockStatePersistenceControls {
        reset(): void;
        state(): Map<string, string>;
    }
    Index

    Methods

    Methods