mirror of
https://github.com/abhigyanpatwari/GitNexus.git
synced 2026-10-28 06:22:22 +00:00
13 lines
453 B
TypeScript
13 lines
453 B
TypeScript
import { describe, expect, it } from 'vitest';
|
|
|
|
describe('test setup storage isolation', { concurrent: false }, () => {
|
|
it('can seed a persisted i18n language inside one test', () => {
|
|
localStorage.setItem('gitnexus.lng', 'zh-CN');
|
|
|
|
expect(localStorage.getItem('gitnexus.lng')).toBe('zh-CN');
|
|
});
|
|
|
|
it('clears the persisted i18n language before the next test', () => {
|
|
expect(localStorage.getItem('gitnexus.lng')).toBeNull();
|
|
});
|
|
});
|