{"size": 437, "ext": "js", "max_stars_repo_path": "test/messages/unfurls/auto-unfurl-prompt.test.js", "max_stars_repo_name": "jcudit/slack", "max_stars_repo_stars_event_min_datetime": "2020-07-14T16:23:28.000Z", "max_stars_repo_stars_event_max_datetime": "2020-07-14T16:23:28.000Z", "max_issues_repo_path": "test/messages/unfurls/auto-unfurl-prompt.test.js", "max_issues_repo_name": "jcudit/slack", "max_issues_repo_issues_event_min_datetime": "2020-01-22T08:40:43.000Z", "max_issues_repo_issues_event_max_datetime": "2020-01-22T09:07:21.000Z", "max_forks_repo_path": "test/messages/unfurls/auto-unfurl-prompt.test.js", "max_forks_repo_name": "zlatkoverk/slack", "max_forks_repo_forks_event_min_datetime": "2020-04-27T05:03:31.000Z", "max_forks_repo_forks_event_max_datetime": "2020-07-14T16:24:35.000Z"}
{"max_stars_count": 1, "max_issues_count": 7, "max_forks_count": 2, "avg_line_length": 29.1333333333, "max_line_length": 85, "alphanum_fraction": 0.6361556064}
const AutoUnfurlPrompt = require('../../../lib/messages/unfurls/auto-unfurl-prompt');

describe('AutoUnfurlPrompt message rendering', () => {
  test('works', async () => {
    const unfurl = {
      githubRepoId: 12345678,
    };
    const team = {
      domain: 'bestslackteam',
    };
    const message = new AutoUnfurlPrompt('integrations', 'snappydoo', unfurl, team);
    expect(message.getAttachment()).toMatchSnapshot();
  });
});
