-
Notifications
You must be signed in to change notification settings - Fork 199
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
ReferenceError: Lame is not defined #58
Comments
Nevermind, I now see that i needed to mock this package. Also instantiating these as variables gives other errors. I'm going to close this issue. Sorry for the unnecessary issue |
@ReneLems How did you fix the problem? |
@ReneLems How did you fix the problem? |
@ReneLems I wish you could just tell us how did you fix it |
@MooseSaeed I mocked the Lame service, since the error only occurred for me while testing with Mocha. Didn't need to fix the issue this way. If the error occurs for you during testing as well, then you can also mock Lame, otherwise I can't help you. |
I import this library with ES6 like this
import lamejs from 'lamejs';
Im using webpack and babel to compile my ES6 code, this all works fine. But when I run my Mocha tests i run into the following error:
Shouldn't the following classes be defined as a variable?
I'll make a PR for this, but please let me know if I'm missing something
The text was updated successfully, but these errors were encountered: