Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Validation: add expect executor #71

Open
joshjung opened this issue Feb 14, 2017 · 0 comments
Open

Validation: add expect executor #71

joshjung opened this issue Feb 14, 2017 · 0 comments

Comments

@joshjung
Copy link
Collaborator

joshjung commented Feb 14, 2017

Target Code:

import {expects} from 'ringa';

controller.addListener('event', [
  expect('someProperty', 'someOtherProperty, 'blah'),
  MyExecutor
]);

Will throw an error and kill the thread if the ringaEvent.detail does not have these properties. This is a way to clarify at the beginning of a rather large executor tree what the developer expects to be available.

@joshjung joshjung changed the title Validation: add expects executor Validation: add expect executor Feb 14, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant