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

Component doesn't run in a mocha test #46

Open
ryankauk opened this issue Sep 11, 2017 · 0 comments
Open

Component doesn't run in a mocha test #46

ryankauk opened this issue Sep 11, 2017 · 0 comments

Comments

@ryankauk
Copy link

The index file is using the 'started' event but is conditionally emitted in the server.js file. This doesn't run when running a test using mocha, in which case would not run loopback-component-realtime during testing and causing an error when creating the model.

I suggest just changing the 'started' listener to 'booted' listener.

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

No branches or pull requests

1 participant