|
@@ -243,7 +243,7 @@ describe('残疾人管理API集成测试', () => {
|
|
|
if (response.status === 200) {
|
|
if (response.status === 200) {
|
|
|
const data = await response.json();
|
|
const data = await response.json();
|
|
|
expect(data.name).toBe(createData.name);
|
|
expect(data.name).toBe(createData.name);
|
|
|
- expect(data.specificDisability).toBeUndefined(); // 应该为undefined
|
|
|
|
|
|
|
+ expect(data.specificDisability).toBeNull(); // 应该为null,因为数据库字段nullable: true
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
|
|
|