<commit_before># ember-cli-custom-assertions #

[![Build Status](https://secure.travis-ci.org/dockyard/ember-cli-custom-assertions.svg?branch=master)](http://travis-ci.org/dockyard/ember-cli-custom-assertions)

## About ##

Add custom assertions to your Ember test suite.

## Installing ##

`ember install ember-cli-custom-assertions`

## Looking for help? ##

If it is a bug [please open an issue on GitHub](https://github.com/dockyard/ember-cli-custom-assertions/issues).

## Usage ##

Add new assertions to `test/assertions`. Then use on the `assert` object in your test suite.

For example:

```javascript
// tests/assertions/contains.js

export default function(context, element, text, message) {
  var matches = context.$(element).text().match(new RegExp(text));
  message = message || `${element} should contain "${text}"`;
<commit_msg>Fix whitespace<commit_after># ember-cli-custom-assertions #

[![Build Status](https://secure.travis-ci.org/dockyard/ember-cli-custom-assertions.svg?branch=master)](http://travis-ci.org/dockyard/ember-cli-custom-assertions)

## About ##

Add custom assertions to your Ember test suite.

## Installing ##

`ember install ember-cli-custom-assertions`

## Looking for help? ##

If it is a bug [please open an issue on GitHub](https://github.com/dockyard/ember-cli-custom-assertions/issues).

## Usage ##

Add new assertions to `test/assertions`. Then use on the `assert` object in your test suite.

For example:

```javascript
// tests/assertions/contains.js
export default function(context, element, text, message) {
  var matches = context.$(element).text().match(new RegExp(text));
  message = message || `${element} should contain "${text}"`;

{'fraction_non_alphanumeric': 0.15302491103202848, 'fraction_numerical': 0.0, 'mean_word_length': 4.797250859106529, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, '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': '2691093', 'n_tokens_mistral': 538, 'n_tokens_neox': 523, 'n_words': 135}