22 lines
566 B
JavaScript
22 lines
566 B
JavaScript
"""
|
|
Basic diagnostic tests to validate frontend test environment.
|
|
"""
|
|
import { describe, it, expect } from 'vitest';
|
|
|
|
describe('Basic Environment Tests', () => {
|
|
it('should run basic math', () => {
|
|
expect(1 + 1).toBe(2);
|
|
});
|
|
|
|
it('should have access to DOM APIs', () => {
|
|
expect(typeof document).toBe('object');
|
|
expect(typeof window).toBe('object');
|
|
});
|
|
|
|
it('should have localStorage mock', () => {
|
|
localStorage.setItem('test', 'value');
|
|
expect(localStorage.getItem('test')).toBe('value');
|
|
localStorage.removeItem('test');
|
|
});
|
|
});
|