import run from 'ember-runloop';
import Test from 'ember-test';

export default Test.registerAsyncHelper('scrollTop',
  function (app, selector, top, context) {
    let $el = findWithAssert(selector, context);
    run($el, 'scrollTop', top);
    return wait(app);
  }
);
