Skip to content

Commit

Permalink
fix: error message
Browse files Browse the repository at this point in the history
  • Loading branch information
ChengShi-1 committed Jan 31, 2025
1 parent 0840a13 commit 9e70fe6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion test/functional/contact/SubmitContactInfo.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ describe('submitContactInfo', () => {
body: '',
fromEmail: '[email protected]'
}
const expectedError = new WriteError(`[400] Feedback target object not found`)
const expectedError = new WriteError(`[400] Feedback target object not found.`)
await expect(submitContactInfo.execute(contactDTO)).rejects.toThrow(expectedError)
})
})
2 changes: 1 addition & 1 deletion test/integration/contact/ContactRepository.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ describe('submitContactInfo', () => {
body: '',
fromEmail: ''
}
const expectedError = new WriteError(`[400] Feedback target object not found`)
const expectedError = new WriteError(`[400] Feedback target object not found.`)
await expect(sut.submitContactInfo(invalidContactDTO)).rejects.toThrow(expectedError)
})
})
2 changes: 1 addition & 1 deletion test/unit/contact/SubmitContactInfo.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ describe('execute submit information to contacts', () => {
fromEmail: ''
}
const contactRepositoryStub = <IContactRepository>{}
const error = new WriteError(`[400] Feedback target object not found`)
const error = new WriteError(`[400] Feedback target object not found.`)
contactRepositoryStub.submitContactInfo = jest.fn().mockRejectedValue(error)
const sut = new SubmitContactInfo(contactRepositoryStub)
await expect(sut.execute(contactDTO)).rejects.toThrow(error)
Expand Down

0 comments on commit 9e70fe6

Please sign in to comment.