Skip to content

Commit 5868b7a

Browse files
fix(api): fix grammatical issues and improve consistency (#1598)
* fix: fix grammatical issues Change "error" to "errors" to be grammatically correct and consistent with other styles like it("gets ...") or it("deletes ...") or it("creates ...") * fix: fix grammatical issues Change "error" to "errors" to be grammatically correct and consistent with other styles like it("gets ...") or it("deletes ...") or it("creates ...") * fix: fix grammatical issues Change "error" to "errors" to be grammatically correct and consistent with other styles like it("gets ...") or it("deletes ...") or it("creates ...") * fix: fix grammatical issues For example change "error" to "errors" to be grammatically correct and consistent with other styles like it("gets ...") or it("deletes ...") or it("creates ...") * fix: fix grammatical issues
1 parent 7f3aa7e commit 5868b7a

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

cypress/tests/api/api-contacts.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ describe("Contacts API", function () {
5353
});
5454
});
5555

56-
it("error when invalid contactUserId", function () {
56+
it("errors when invalid contactUserId", function () {
5757
cy.request({
5858
method: "POST",
5959
url: `${apiContacts}`,

cypress/tests/api/api-notifications.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ describe("Notifications API", function () {
9090
});
9191
});
9292

93-
it("error when invalid field sent", function () {
93+
it("errors when invalid field sent", function () {
9494
cy.request({
9595
method: "PATCH",
9696
url: `${apiNotifications}/${ctx.notificationId}`,

cypress/tests/api/api-transactions.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ describe("Transactions API", function () {
152152
});
153153
});
154154

155-
it("error when invalid field sent", function () {
155+
it("errors when an invalid field sent", function () {
156156
cy.request({
157157
method: "PATCH",
158158
url: `${apiTransactions}/${ctx.transactionId}`,

cypress/tests/api/api-users.spec.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,14 @@ describe("Users API", function () {
3737
});
3838

3939
context("GET /users/:userId", function () {
40-
it("get a user", function () {
40+
it("gets a user", function () {
4141
cy.request("GET", `${apiUsers}/${ctx.authenticatedUser!.id}`).then((response) => {
4242
expect(response.status).to.eq(200);
4343
expect(response.body.user).to.have.property("firstName");
4444
});
4545
});
4646

47-
it("error when invalid userId", function () {
47+
it("errors when invalid userId", function () {
4848
cy.request({
4949
method: "GET",
5050
url: `${apiUsers}/1234`,
@@ -57,7 +57,7 @@ describe("Users API", function () {
5757
});
5858

5959
context("GET /users/profile/:username", function () {
60-
it("get a user profile by username", function () {
60+
it("gets a user profile by username", function () {
6161
const { username, firstName, lastName, avatar } = ctx.authenticatedUser!;
6262
cy.request("GET", `${apiUsers}/profile/${username}`).then((response) => {
6363
expect(response.status).to.eq(200);
@@ -72,7 +72,7 @@ describe("Users API", function () {
7272
});
7373

7474
context("GET /users/search", function () {
75-
it("get users by email", function () {
75+
it("gets users by email", function () {
7676
const { email, firstName } = ctx.searchUser!;
7777
cy.request({
7878
method: "GET",
@@ -86,7 +86,7 @@ describe("Users API", function () {
8686
});
8787
});
8888

89-
it("get users by phone number", function () {
89+
it("gets users by phone number", function () {
9090
const { phoneNumber, firstName } = ctx.searchUser!;
9191

9292
cy.request({
@@ -101,7 +101,7 @@ describe("Users API", function () {
101101
});
102102
});
103103

104-
it("get users by username", function () {
104+
it("gets users by username", function () {
105105
const { username, firstName } = ctx.searchUser!;
106106

107107
cy.request({
@@ -154,7 +154,7 @@ describe("Users API", function () {
154154
});
155155
});
156156

157-
it("error when invalid field sent", function () {
157+
it("errors when an invalid field sent", function () {
158158
cy.request({
159159
method: "POST",
160160
url: `${apiUsers}`,
@@ -180,7 +180,7 @@ describe("Users API", function () {
180180
});
181181
});
182182

183-
it("error when invalid field sent", function () {
183+
it("errors when an invalid field sent", function () {
184184
cy.request({
185185
method: "PATCH",
186186
url: `${apiUsers}/${ctx.authenticatedUser!.id}`,
@@ -196,7 +196,7 @@ describe("Users API", function () {
196196
});
197197

198198
context("POST /login", function () {
199-
it("login as user", function () {
199+
it("logs in as a user", function () {
200200
cy.loginByApi(ctx.authenticatedUser!.username).then((response) => {
201201
expect(response.status).to.eq(200);
202202
});

0 commit comments

Comments
 (0)