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

using "it" test case instead of "describe" #44

Open
xs2bharat opened this issue Feb 22, 2019 · 4 comments
Open

using "it" test case instead of "describe" #44

xs2bharat opened this issue Feb 22, 2019 · 4 comments

Comments

@xs2bharat
Copy link

When using "it" in stead of "describe", test case always succed.

@hoegertn
Copy link
Collaborator

I do not really understand your problem with this.

@xs2bharat
Copy link
Author

xs2bharat commented Feb 25, 2019

So the below test case works as expected.

describe('Launch Request unit testing', () => { describe('LaunchRequest', () => { const speechText = 'Sample Text'; alexaTest.test([ { request: alexaTest.getLaunchRequest(), says: speechText, } ]); }); });

But when i replace 2nd "describe" by "it", test case always succeed regardless of speechText content.

describe('Launch Request unit testing', () => { it('LaunchRequest', () => { const speechText = 'Sample Text'; alexaTest.test([ { request: alexaTest.getLaunchRequest(), says: speechText, } ]); }); });

@hoegertn
Copy link
Collaborator

alexaTest.test creates the it so you should not do it on your own.

@xs2bharat
Copy link
Author

ok. Thanks

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