ember-cli-test-generators

    1.2.0 • Public • Published

    ember-cli-test-generators

    Build Status Mutation testing badge

    About

    Some blueprints for unit-tests.

    Install

    ember i ember-cli-test-generators

    Usage

    For ember-data:

    Test belongs-to relationship:

    ember g test-model-belongs-to user:team --related=team --inverse=users

    Test has-many relationship:

    ember g test-model-has-many team:users --related=user --inverse=team

    For ember-data with ember-cp-validations:

    Test confirmation validation:

    ember g test-model-attr-cpv-confirmation user:password --on=passwordConfirmation

    Test length validation:

    ember g test-model-attr-cpv-length user:password --min=10

    Test number validation:

    ember g test-model-attr-cpv-number user:age --min=10

    Check tests for more examples.

    Install

    npm i ember-cli-test-generators

    DownloadsWeekly Downloads

    2

    Version

    1.2.0

    License

    MIT

    Unpacked Size

    60.8 kB

    Total Files

    13

    Last publish

    Collaborators

    • onechiporenko