mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 23:07:06 +00:00
[@types/ember-qunit] add missing definition for setupApplicationTest
This commit is contained in:
Vendored
+15
-1
@@ -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';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user