alexa-skill-test-framework
alexa-skill-test-framework copied to clipboard
using "it" test case instead of "describe"
When using "it" in stead of "describe", test case always succed.
I do not really understand your problem with this.
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, } ]); }); });
alexaTest.test
creates the it
so you should not do it on your own.
ok. Thanks