mirror of
https://github.com/Syngnat/GoNavi.git
synced 2026-07-23 05:37:11 +08:00
12 lines
449 B
TypeScript
12 lines
449 B
TypeScript
import { readFileSync } from 'node:fs';
|
|
import { describe, expect, it } from 'vitest';
|
|
|
|
const source = readFileSync(new URL('./Sidebar.tsx', import.meta.url), 'utf8');
|
|
|
|
describe('Sidebar danger operations menu i18n', () => {
|
|
it('localizes danger operation group labels', () => {
|
|
expect(source).not.toContain("label: '危险操作'");
|
|
expect(source.match(/label: t\('sidebar\.menu\.danger_operations'\)/g) || []).toHaveLength(4);
|
|
});
|
|
});
|