mirror of
https://github.com/abhigyanpatwari/GitNexus.git
synced 2026-09-07 08:26:11 +00:00
13 lines
441 B
TypeScript
13 lines
441 B
TypeScript
import { describe, expect, it } from 'vitest';
|
|
|
|
describe.sequential('test setup storage isolation', () => {
|
|
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();
|
|
});
|
|
});
|