Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose importable helper functions. #222

Merged
merged 2 commits into from
Oct 17, 2017

Commits on Oct 17, 2017

  1. Expose importable helper functions.

    These functions can be used instead of repeating `this.` throughout the testing code.
    
    Example:
    
    ```js
    import { module, test } from 'qunit';
    import { setupRenderingTest, render, element } from 'ember-qunit';
    import hbs from 'htmlbars-inline-precompile';
    
    module('x-foo', function(hooks) {
      setupRenderingTest(hooks);
    
      test('renders', async function(assert) {
        assert.expect(1);
    
        await render(hbs`{{pretty-color name="red"}}`);
    
        assert.equal(element.querySelector('.color-name').textContent, 'red');
      });
    });
    ```
    rwjblue committed Oct 17, 2017
    Configuration menu
    Copy the full SHA
    da3e65d View commit details
    Browse the repository at this point in the history
  2. Drop element importable helper for now.

    Might bring it back later in a different incarnation, but removing for now.
    rwjblue committed Oct 17, 2017
    Configuration menu
    Copy the full SHA
    2240194 View commit details
    Browse the repository at this point in the history