Skip to content

Commit

Permalink
update test
Browse files Browse the repository at this point in the history
  • Loading branch information
Yen Truong committed Aug 12, 2022
1 parent 8918580 commit 01e5534
Showing 1 changed file with 1 addition and 17 deletions.
18 changes: 1 addition & 17 deletions tests/transformers/searchservice/createDirectAnswer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,21 +82,5 @@ it('can create a custom FieldValueDirectAnswer', () => {
}
};
const actualDirectAnswer = createDirectAnswer(apiFieldValueDirectAnswer);
const expectedDirectAnswer: CustomFieldValueDA = {
type: DirectAnswerType.FieldValue,
value: {
color: 'yellow',
os: 'android'
},
relatedResult: {
rawData: {},
source: Source.KnowledgeManager
},
verticalKey: 'phone',
entityName: 'Obama Phone',
fieldName: 'Phone Description',
fieldApiName: 'phoneDescription',
fieldType: 'unknown'
};
expect(actualDirectAnswer).toMatchObject(expectedDirectAnswer);
expect(actualDirectAnswer).toMatchObject(expect.objectContaining({ fieldType: 'unknown' }));
});

0 comments on commit 01e5534

Please sign in to comment.