chore: 调整字段名
- 将问题类型的类型名字段命名由type改为name
This commit is contained in:
@ -21,7 +21,7 @@ describe('toQuestionTypeView', () => {
|
||||
|
||||
expect(toQuestionTypeView(rawData)).toEqual({
|
||||
id: '1',
|
||||
type: 'Type Name',
|
||||
name: 'Type Name',
|
||||
});
|
||||
});
|
||||
|
||||
@ -33,7 +33,7 @@ describe('toQuestionTypeView', () => {
|
||||
|
||||
expect(toQuestionTypeView(rawData)).toEqual({
|
||||
id: '1',
|
||||
type: '',
|
||||
name: '',
|
||||
});
|
||||
});
|
||||
|
||||
@ -41,7 +41,7 @@ describe('toQuestionTypeView', () => {
|
||||
const rawData: QuestionType | null = null;
|
||||
|
||||
expect(toQuestionTypeView(rawData)).toEqual({
|
||||
id: '',
|
||||
id: '-1',
|
||||
type: '',
|
||||
});
|
||||
});
|
||||
@ -120,7 +120,7 @@ describe('toQuestionListView', () => {
|
||||
id: '1',
|
||||
type: {
|
||||
id: '1',
|
||||
type: 'Type Name',
|
||||
name: 'Type Name',
|
||||
},
|
||||
title: 'Question Title',
|
||||
content: 'Question Answer',
|
||||
@ -160,7 +160,7 @@ describe('toQuestionListView', () => {
|
||||
id: '1',
|
||||
type: {
|
||||
id: '1',
|
||||
type: 'Type Name',
|
||||
name: 'Type Name',
|
||||
},
|
||||
title: '',
|
||||
content: '',
|
||||
|
||||
Reference in New Issue
Block a user