We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi,
First off, thanks for turning this into an Ember CLI addon! Appreciated.
Second, do you have any examples of how you're using this in your Ember tests? I'm fairly new to testing and struggling with this a bit.
Thanks! James
The text was updated successfully, but these errors were encountered:
Hi @jamesdixon. It is actually just a wrapper for bower package so:
I add a test helper:
Ember.Test.registerHelper 'stubWebSocket', (app, url)-> window.WebSocket = MockSocket new MockServer(url)
then in tests
webSocketServer = stubWebSocket(user.get('id')) webSocketServer.send(message) andThen -> assertPageIncludes 'Something on the page after message received'
Sorry for coffeescript, but I think you get the idea.
Sorry, something went wrong.
Could you please be kind and link/add some more tests examples? I am as well finding it difficult to get my tests running
No branches or pull requests
Hi,
First off, thanks for turning this into an Ember CLI addon! Appreciated.
Second, do you have any examples of how you're using this in your Ember tests? I'm fairly new to testing and struggling with this a bit.
Thanks!
James
The text was updated successfully, but these errors were encountered: