Skip to content
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.

Throw error for non-existent action and add tests - Closes #4080 #4081 #4107

Merged
merged 5 commits into from
Aug 16, 2019

Conversation

michielmulders
Copy link
Contributor

@michielmulders michielmulders commented Aug 16, 2019

What was the problem?

See #4070

How did I solve it?

Add error message and tests for non-existent actions for invoke and invokePublic.

How to manually test it?

npm run jest:unit -- test/jest/unit/specs/controller/bus.spec.js
Or request a nonexisting action from chain module on startup (inside bootstrap() function).

Review checklist

Copy link
Contributor

@mitsuaki-u mitsuaki-u left a comment

Choose a reason for hiding this comment

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

Nice tests 👍

@shuse2 shuse2 merged commit 3995640 into release/2.3.0 Aug 16, 2019
@shuse2 shuse2 deleted the 4081-error-non-existent-action branch August 16, 2019 16:49
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants