Skip to content

Commit

Permalink
#390 removed duplicate cypress test
Browse files Browse the repository at this point in the history
  • Loading branch information
Cyprian Laskowski committed Oct 24, 2022
1 parent 7b5eedf commit 5cdcc6a
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions cypress/e2e/conversations.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,28 +117,6 @@ describe("'/conversation' endpoint", () => {
});
});

it("should not allow creating a conversation with an invited_username of less than 1 characters", () => {
//Generate a username to be invited
requestBody = {
"invitedUserName": ""
}
expect(requestBody.invitedUserName).to.be.a("string");

//Create a conversation and test the response body
cy.conversationEndpoint(requestBody, accessToken, session_Id).should((response) => {
expect(response.status).to.equal(400);
expect(response.headers["content-type"]).to.equal(
"application/json"
);
expect(response.body).to.be.an("object");
expect(response.body).to.have.property("error");
expect(response.body.error).to.be.a("string");
expect(response.body.error).to.satisfy(function (s) {
return s === invalidInvitedUsername;
});
});
});

it("should not allow creating a conversation with an invited_username of 0 characters", () => {
//Generate a username to be invited
requestBody = {
Expand Down

0 comments on commit 5cdcc6a

Please sign in to comment.