Files
gongxue-base/apps/admin/src/components/StudentProfileContent/shared.integration.test.ts

47 lines
1.2 KiB
TypeScript

import { describe, expect, it } from 'vitest';
import {
FOLLOW_UP_METHOD_OPTIONS,
GENDER_OPTIONS,
GRADE_OPTIONS,
SUBJECT_DIRECTION_OPTIONS,
SUBJECT_OPTIONS,
} from './shared';
describe('StudentProfileContent shared option constants', () => {
it('SUBJECT_OPTIONS covers common exam subjects', () => {
expect(SUBJECT_OPTIONS.map((o) => o.value)).toEqual([
'语文',
'数学',
'英语',
'物理',
'化学',
'生物',
'政治',
'历史',
'地理',
'计算机',
]);
});
it('FOLLOW_UP_METHOD_OPTIONS covers common follow-up channels', () => {
expect(FOLLOW_UP_METHOD_OPTIONS.map((o) => o.value)).toEqual([
'电话',
'微信',
'面谈',
'上门',
'其他',
]);
});
it('GENDER / GRADE / SUBJECT_DIRECTION options match the agreed enums', () => {
expect(GENDER_OPTIONS.map((o) => o.value)).toEqual(['男', '女']);
expect(GRADE_OPTIONS.map((o) => o.value)).toEqual(['高三', '复读', '应届']);
expect(SUBJECT_DIRECTION_OPTIONS.map((o) => o.value)).toEqual([
'物理类',
'历史类',
'艺术类',
'体育类',
]);
});
});