<commit_before>import React from 'react';
import { storiesOf } from '@kadira/storybook';
import { withKnobs, text } from '@kadira/storybook-addon-knobs';

import Welcome from './index.jsx';

const stories = storiesOf('Welcome', module);

stories.addDecorator(withKnobs);

stories.add('Welcome', () => {
  return <Welcome welcomeText={text('Text', 'Welcome to Storybook!')} />;
});<commit_msg>adding spec storybook<commit_after>import React from 'react';
import { storiesOf } from '@kadira/storybook';
import { withKnobs, text } from '@kadira/storybook-addon-knobs';
import { specs } from 'storybook-addon-specifications';

import Welcome from './index.jsx';
import tests from './welcome-spec';

console.log(specs, tests);

const stories = storiesOf('Welcome', module);

stories.addDecorator(withKnobs);

stories.add('Welcome', () => {
  specs(() => tests);

  return <Welcome welcomeText={text('Text', 'Welcome to Storybook!')} />;
});
{'fraction_non_alphanumeric': 0.17219251336898395, 'fraction_numerical': 0.0, 'mean_word_length': 5.882352941176471, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 8, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '968029', 'n_tokens_mistral': 315, 'n_tokens_neox': 298, 'n_words': 72}