alexa-skill-test-framework icon indicating copy to clipboard operation
alexa-skill-test-framework copied to clipboard

using "it" test case instead of "describe"

Open xs2bharat opened this issue 6 years ago • 4 comments

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

xs2bharat avatar Feb 22 '19 22:02 xs2bharat

I do not really understand your problem with this.

hoegertn avatar Feb 25 '19 16:02 hoegertn

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, } ]); }); });

xs2bharat avatar Feb 25 '19 16:02 xs2bharat

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

hoegertn avatar Feb 25 '19 16:02 hoegertn

ok. Thanks

xs2bharat avatar Feb 25 '19 19:02 xs2bharat