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

ReferenceError: td is not defined #418

Closed
AzranAzwer opened this issue Jun 18, 2019 · 1 comment
Closed

ReferenceError: td is not defined #418

AzranAzwer opened this issue Jun 18, 2019 · 1 comment

Comments

@AzranAzwer
Copy link

I have started the unit testing for login redux part, i found an article about writing testing including td when i save my test case i got an error "ReferenceError: td is not defined"

please help to how to import td.function("xxx") without error

@searls
Copy link
Member

searls commented Jun 18, 2019

I'm sorry, I don't really know what you're referring to, and without an example or link I don't think we'll be able to help you.

Using Node's default module system, you can just cont td = require('td') and then reference td.function() so long as it's installed

@searls searls closed this as completed Jun 18, 2019
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

2 participants