import assert from 'node:assert/strict';
import test from 'node:test';

import { TokenGridSnapSessionStore } from './tokenGridSnapSessionStore';

void test('TokenGridSnapSessionStore: set and reset', () => {
  const store = new TokenGridSnapSessionStore();
  assert.equal(store.getState().enabled, false);
  assert.equal(store.setEnabled(true).enabled, true);
  assert.equal(store.getState().enabled, true);
  assert.equal(store.reset().enabled, false);
});
