@@ -27,19 +27,18 @@ import { installTestNotIsolatedHook } from './test-isolation-validation';
27
27
28
28
let waitForSettled = true ;
29
29
30
- import deprecationsInclude from './asserts /deprecations-include' ;
31
- import deprecations from './asserts /deprecations' ;
32
- import noDeprecations from './asserts/ no-deprecations ' ;
33
- import expectDeprecation from './asserts /expect-deprecation' ;
34
- import expectNoRunloop from './asserts /expect-no-runloop' ;
35
- import expectWarning from './asserts /expect-warning' ;
36
-
37
- export function setup ( assert ) {
30
+ import deprecationsInclude from './assertions /deprecations-include' ;
31
+ import deprecations from './assertions /deprecations' ;
32
+ import expectNoDeprecation from './assertions/expect- no-deprecation ' ;
33
+ import expectDeprecation from './assertions /expect-deprecation' ;
34
+ import expectNoRunloop from './assertions /expect-no-runloop' ;
35
+ // import expectWarning from './assertions /expect-warning';
36
+ //
37
+ export function setupAsserts ( assert ) {
38
38
// TODO: decide which of these we should keep, which depreacte and which drop.
39
39
assert . deprecationsInclude = deprecationsInclude ;
40
40
assert . deprecations = deprecations ;
41
- assert . expectNoDeprecations = noDeprecations ; // compat
42
- assert . noDeprecations = noDeprecations ;
41
+ assert . expectNoDeprecation = expectNoDeprecation ;
43
42
assert . expectDeprecation = expectDeprecation ; // compat
44
43
assert . expectNoRunloop = expectNoRunloop ; // compat but fixed name
45
44
// around for compat
@@ -241,5 +240,9 @@ export function start(options = {}) {
241
240
startTests ( ) ;
242
241
}
243
242
243
+ if ( options . setupAssertAdditions !== false ) {
244
+ setupAsserts ( QUnit . assert ) ;
245
+ }
246
+
244
247
setupResetOnerror ( ) ;
245
248
}
0 commit comments