[@types/ember-qunit] add missing definition for setupApplicationTest

This commit is contained in:
Albert Yu
2018-03-23 21:20:46 +08:00
parent f2982c1754
commit 54b3965d34
+15 -1
View File
@@ -44,6 +44,20 @@ declare module 'ember-qunit' {
*/
export function setResolver(resolver: Ember.Resolver): void;
/**
* Sets up acceptance tests.
*
* The `setupApplicationTest` function is used for all acceptance tests. It
* is invoked in the callback scope of a QUnit module (aka "nested module").
*
* Once invoked, all subsequent hooks.beforeEach and test invocations will
* have access to the following:
* * `this.owner` - the owner object that been set on the test context.
* * `this.pauseTest` and `this.resumeTest` - allow easy pausing/resuming of tests.
* * `this.element` which returns the DOM element representing the application's root element.
*/
export function setupApplicationTest(hooks: NestedHooks): void;
/**
* Sets up tests that need to render snippets of templates.
*
@@ -80,7 +94,7 @@ declare module 'ember-qunit' {
*/
export function setupTest(hooks: NestedHooks): void;
export class QUnitAdapter extends Ember.Test.Adapter {}
export class QUnitAdapter extends Ember.Test.Adapter { }
export { module, test, skip, only, todo } from 'qunit';
}