Skip to content

Commit

Permalink
improve test names
Browse files Browse the repository at this point in the history
  • Loading branch information
despairblue committed Feb 16, 2024
1 parent ed4fc58 commit 86cd56b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ describe('ProjectService', () => {
},
);

it('changes the role the user has to the project instead of creating a new relationship if the user already has a relationship to the project', async () => {
it('changes the role the user has in the project if the user is already part of the project, instead of creating a new relationship', async () => {
//
// ARRANGE
//
Expand Down Expand Up @@ -174,7 +174,7 @@ describe('ProjectService', () => {
},
);

it('should not return the project if the user is not related to it', async () => {
it('should not return the project if the user is not part of it', async () => {
//
// ARRANGE
//
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ describe('POST /workflows', () => {
});
});

test('creates workflow in other project if projectId is passed', async () => {
test('creates workflow in a specific project if the projectId is passed', async () => {
//
// ARRANGE
//
Expand Down Expand Up @@ -212,7 +212,7 @@ describe('POST /workflows', () => {
});
});

test('does not create the workflow in specific project if the project is not shared with user', async () => {
test('does not create the workflow in a specific project if the user is not part of the project', async () => {
//
// ARRANGE
//
Expand Down Expand Up @@ -240,7 +240,7 @@ describe('POST /workflows', () => {
});
});

test('does not create workflow in other project if the user does not have the right role', async () => {
test('does not create the workflow in a specific project if the user does not have the right role to do so', async () => {
//
// ARRANGE
//
Expand Down

0 comments on commit 86cd56b

Please sign in to comment.