-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
644442f
commit 807da0d
Showing
17 changed files
with
344 additions
and
285 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
145 changes: 0 additions & 145 deletions
145
...pathway/application/src/lib/initialize/command/initialize-pathway.command-handler.spec.ts
This file was deleted.
Oops, something went wrong.
54 changes: 0 additions & 54 deletions
54
.../server/pathway/application/src/lib/initialize/service/initialize-pathway.service.spec.ts
This file was deleted.
Oops, something went wrong.
52 changes: 30 additions & 22 deletions
52
.../server/pathway/application/src/lib/initialize/usecase/initialize-pathway.usecase.feature
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,36 @@ | ||
Feature: Initiate a pathway | ||
|
||
Scenario: I want to initialize a pathway | ||
When I want to initialize a pathway with these data | ||
| title | description | researchField | | ||
| My Pathway | A test pathway | biology | | ||
Then I should receive the attributes of the pathway | ||
| title | description | researchField | | ||
| My Pathway | A test pathway | biology | | ||
# Scenario: I want to initialize a pathway | ||
# When I want to initialize a pathway with these data | ||
# | title | description | researchField | | ||
# | My Pathway | A test pathway | biology | | ||
# Then I should receive the attributes of the pathway | ||
# | title | description | researchField | | ||
# | My Pathway | A test pathway | biology | | ||
|
||
Scenario: I want to initialize a pathway with an empty title | ||
When I want to initialize a pathway with these data | ||
| title | description | researchField | | ||
| | A test pathway | biology | | ||
Then I should see an error message "Title is required" during initialization of the pathway | ||
# Scenario: When I initiliaze a pathway, an event should be emitted | ||
# When I want to initialize a pathway with these data | ||
# | title | description | researchField | | ||
# | My Pathway | A test pathway | biology | | ||
# Then it should emitted an event "PathwayInitialized" with the attributes of the pathway | ||
# | title | description | researchField | | ||
# | My Pathway | A test pathway | biology | | ||
|
||
Scenario: I want to initialize a pathway with an empty description | ||
When I want to initialize a pathway with these data | ||
| title | description | researchField | | ||
| My Pathway | | biology | | ||
Then I should see an error message "Description is required" during initialization of the pathway | ||
# Scenario: I want to initialize a pathway with an empty title | ||
# When I want to initialize a pathway with these data | ||
# | title | description | researchField | | ||
# | | A test pathway | biology | | ||
# Then I should see an error message "Title is required" during initialization of the pathway | ||
|
||
# Scenario: I want to initialize a pathway with an empty description | ||
# When I want to initialize a pathway with these data | ||
# | title | description | researchField | | ||
# | My Pathway | | biology | | ||
# Then I should see an error message "Description is required" during initialization of the pathway | ||
|
||
Scenario: I want to initialize a pathway with an empty research field | ||
When I want to initialize a pathway with these data | ||
| title | description | researchField | | ||
| My Pathway | A test pathway | | | ||
Then I should see an error message "Research field is required" during initialization of the pathway | ||
|
||
# Scenario: I want to initialize a pathway with an empty research field | ||
# When I want to initialize a pathway with these data | ||
# | title | description | researchField | | ||
# | My Pathway | A test pathway | | | ||
# Then I should see an error message "Research field is required" during initialization of the pathway |
Oops, something went wrong.