Deprecated 'setup'/'teardown', added 'beforeEach'/'afterEach', added indexer to 'LifecycleObject' in 'qunit'.

This commit is contained in:
Daniel Rosenwasser
2015-09-01 14:43:39 -07:00
parent 5a5d2f56dc
commit a3ea332e5e
+21 -6
View File
@@ -147,14 +147,29 @@ interface URLConfigItem {
interface LifecycleObject {
/**
* Runs before each test
*/
setup?: () => any;
* Runs before each test
* @deprecated
*/
setup?: () => void;
/**
* Runs after each test
*/
teardown?: () => any;
* Runs after each test
* @deprecated
*/
teardown?: () => void;
/**
* Runs before each test
*/
beforeEach?: () => void;
/**
* Runs after each test
*/
afterEach?: () => void;
/**
* Any additional properties on the hooks object will be added to that context.
*/
[property: string]: any;
}
interface QUnitAssert {