<commit_before># ember-jshamcrest

Ember addon to make [JsHamcrest](https://github.com/danielfm/jshamcrest) available as an import in your tests. 

`ember-jshamcrest` was inspired by [ember-sinon](https://github.com/csantero/ember-sinon).

## Installation

Install JsHamcrest in your ember application using the latest Ember CLI:

    $ ember install ember-jshamcrest

## Getting Started

In order to use JsHamcrest in your tests, simply import it in your test file.  

    import Ember from 'ember';
    import { module, test } from 'qunit';
    import startApp from '../../tests/helpers/start-app';
    import JsHamcrest from 'jshamcrest';

    module('Acceptance | js mock', {
      beforeEach: function() {
        this.application = startApp();
      },

      afterEach: function() {
        Ember.run(this.application, 'destroy');
      }
    });

    test('verify JsHamcrest is available', function(assert) {  
      assert.ok(JsHamcrest);
      assert.ok(JsHamcrest.Matchers);
  
      assert.ok(assertThat);
    });

## API Docs

The full API documentation for JsHamcrest can be found [here](http://danielmartins.ninja/jshamcrest/).

## License

JsHamcrest is licensed under [BSD](https://github.com/danielfm/jshamcrest/blob/master/LICENSE) 

MIT, see [License.md](https://github.com/j-fischer/ember-jshamcrest/blob/master/LICENSE.md)<commit_msg>Fixed code sample in Getting Started section of README<commit_after># ember-jshamcrest

Ember addon to make [JsHamcrest](https://github.com/danielfm/jshamcrest) available as an import in your tests. 

`ember-jshamcrest` was inspired by [ember-sinon](https://github.com/csantero/ember-sinon).

## Installation

Install JsHamcrest in your ember application using the latest Ember CLI:

    $ ember install ember-jshamcrest

## Getting Started

In order to use JsHamcrest in your tests, simply import it in your test file.  

    import Ember from 'ember';
    import { module, test } from 'qunit';
    import startApp from '../../tests/helpers/start-app';
    import JsHamcrest from 'jshamcrest';

    module('Acceptance | js mock', {
      beforeEach: function() {
        this.application = startApp();
      },

      afterEach: function() {
        Ember.run(this.application, 'destroy');
      }
    });

    test('verify JsHamcrest is available', function(assert) {  
      assert.ok(JsHamcrest);
      assert.ok(JsHamcrest.Matchers);
      assert.ok(JsHamcrest.Operators);
    });

## API Docs

The full API documentation for JsHamcrest can be found [here](http://danielmartins.ninja/jshamcrest/).

## License

JsHamcrest is licensed under [BSD](https://github.com/danielfm/jshamcrest/blob/master/LICENSE) 

MIT, see [License.md](https://github.com/j-fischer/ember-jshamcrest/blob/master/LICENSE.md)
{'fraction_non_alphanumeric': 0.1213768115942029, 'fraction_numerical': 0.0, 'mean_word_length': 3.504078303425775, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 8, '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': '2783368', 'n_tokens_mistral': 947, 'n_tokens_neox': 912, 'n_words': 223}