Skip to content

Commit

Permalink
test: make test case descriptions more descriptive
Browse files Browse the repository at this point in the history
  • Loading branch information
narekhovhannisyan committed Jun 10, 2024
1 parent f9afb7f commit 87c6dfa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/__tests__/lib/api/BulkSending.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ describe("lib/api/BulkSending: ", () => {
expect(result).toEqual(expectedResponseData);
});

it("rejects with api error.", async () => {
it("handles an API error.", async () => {
const responseData = {
success: false,
errors: ["mock-error-1", "mock-error-2"],
Expand Down Expand Up @@ -110,7 +110,7 @@ describe("lib/api/BulkSending: ", () => {
}
});

it("rejects with axios error.", async () => {
it("handles an HTTP transport error.", async () => {
const emailData = {
from: {
email: "sender.mock@email.com",
Expand Down
4 changes: 2 additions & 2 deletions src/__tests__/lib/api/Testing.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ describe("lib/api/Testing: ", () => {
expect(result).toEqual(expectedResponseData);
});

it("rejects with api error.", async () => {
it("handles an API error.", async () => {
const responseData = {
success: false,
errors: ["mock-error-1", "mock-error-2"],
Expand Down Expand Up @@ -115,7 +115,7 @@ describe("lib/api/Testing: ", () => {
}
});

it("rejects with axios error.", async () => {
it("handles an HTTP transport error.", async () => {
const emailData = {
from: {
email: "sender.mock@email.com",
Expand Down

0 comments on commit 87c6dfa

Please sign in to comment.