import { describe, it, expect } from 'vitest';
import React from 'react';
import { createRoot } from 'react-dom/client';
import { VramGauge } from '../VramGauge';

describe('VramGauge', () => {
  it('renders without crashing', () => {
    const div = document.createElement('div');
    const root = createRoot(div);
    root.render(React.createElement(VramGauge, { used: 2048, total: 8192 }));
    root.unmount();
  });

  it('renders with zero values', () => {
    const div = document.createElement('div');
    const root = createRoot(div);
    root.render(React.createElement(VramGauge, { used: 0, total: 0 }));
    root.unmount();
  });
});
