Skip to content

Commit 9e70fe6

Browse files
committed
fix: error message
1 parent 0840a13 commit 9e70fe6

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

test/functional/contact/SubmitContactInfo.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ describe('submitContactInfo', () => {
5959
body: '',
6060
fromEmail: '[email protected]'
6161
}
62-
const expectedError = new WriteError(`[400] Feedback target object not found`)
62+
const expectedError = new WriteError(`[400] Feedback target object not found.`)
6363
await expect(submitContactInfo.execute(contactDTO)).rejects.toThrow(expectedError)
6464
})
6565
})

test/integration/contact/ContactRepository.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ describe('submitContactInfo', () => {
5454
body: '',
5555
fromEmail: ''
5656
}
57-
const expectedError = new WriteError(`[400] Feedback target object not found`)
57+
const expectedError = new WriteError(`[400] Feedback target object not found.`)
5858
await expect(sut.submitContactInfo(invalidContactDTO)).rejects.toThrow(expectedError)
5959
})
6060
})

test/unit/contact/SubmitContactInfo.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ describe('execute submit information to contacts', () => {
9494
fromEmail: ''
9595
}
9696
const contactRepositoryStub = <IContactRepository>{}
97-
const error = new WriteError(`[400] Feedback target object not found`)
97+
const error = new WriteError(`[400] Feedback target object not found.`)
9898
contactRepositoryStub.submitContactInfo = jest.fn().mockRejectedValue(error)
9999
const sut = new SubmitContactInfo(contactRepositoryStub)
100100
await expect(sut.execute(contactDTO)).rejects.toThrow(error)

0 commit comments

Comments
 (0)