Skip to content

feature(currentState&test): verify if the currentState & test#4

Open
Dani-Rocha-Azevedo wants to merge 2 commits intotaktik:masterfrom
Dani-Rocha-Azevedo:master
Open

feature(currentState&test): verify if the currentState & test#4
Dani-Rocha-Azevedo wants to merge 2 commits intotaktik:masterfrom
Dani-Rocha-Azevedo:master

Conversation

@Dani-Rocha-Azevedo
Copy link
Contributor

Add function currentStateIs / currentStateIsNot
Add setup karma with some tests

src/index.ts Outdated
* Verify if the currentState is the same state
* @param state
*/
currentStateIs(state: T) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pour le nom de la méthode j'aurais plutôt mis isSameState.
Par-contre, il faut évité de mettre est type de retour implicite. ==> Il est péférable spécifier que le type de retour est un booléen
currentStateIs(state: T): Boolean

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants