{"size": 702, "ext": "js", "max_stars_repo_path": "test/help-intent.test.js", "max_stars_repo_name": "bpb54321/language-flashcards", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "test/help-intent.test.js", "max_issues_repo_name": "bpb54321/language-flashcards", "max_issues_repo_issues_event_min_datetime": "2020-09-04T15:22:45.000Z", "max_issues_repo_issues_event_max_datetime": "2022-01-22T04:15:02.000Z", "max_forks_repo_path": "test/help-intent.test.js", "max_forks_repo_name": "bpb54321/language-flashcards", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 3, "max_forks_count": null, "avg_line_length": 33.4285714286, "max_line_length": 98, "alphanum_fraction": 0.6994301994}
'use strict';
const { App, Util } = require(`jovo-framework`);
const { Alexa } = require(`jovo-platform-alexa`);

const alexa = new Alexa();
const testSuite = alexa.makeTestSuite();

describe(`HelpIntent` , () => {
  test(`should return a helpful message and place the user in choosing set state`, async () => {
    const conversation = testSuite.conversation({ locale: `keys-only` });
    const request = await testSuite.requestBuilder.intent();
    request.setIntentName(`HelpIntent`);

    const response = await conversation.send(request);

    expect(response.getSpeech()).toBe(`help`);
    expect(response.getSessionData()).toHaveProperty(`_JOVO_STATE_`, `DecideWhetherToStudyState`);
  });
});

