import { describe, it, expect } from 'vitest';
import { createStore } from 'jotai';
import { hasExternalKeyboardAtom } from '../core/external-keyboard-store';

describe('external-keyboard-store', () => {
	it('defaults to false', () => {
		const store = createStore();
		expect(store.get(hasExternalKeyboardAtom)).toBe(false);
	});

	it('can be set to true', () => {
		const store = createStore();
		store.set(hasExternalKeyboardAtom, true);
		expect(store.get(hasExternalKeyboardAtom)).toBe(true);
	});
});
