Skip to content

Commit 8abd40d

Browse files
committed
fix deprecation test
1 parent 3c2abc6 commit 8abd40d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/ember-runtime/tests/system/core_object_test.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,17 @@ import { moduleFor, AbstractTestCase, buildOwner } from 'internal-test-helpers';
66
moduleFor(
77
'Ember.CoreObject',
88
class extends AbstractTestCase {
9-
['@test throws deprecation with new (one arg)'](assert) {
10-
assert.throws(() => {
9+
['@test throws deprecation with new (one arg)']() {
10+
expectDeprecation(() => {
1111
new CoreObject({
1212
firstName: 'Stef',
1313
lastName: 'Penner',
1414
});
1515
}, /using `new` with EmberObject has been deprecated/);
1616
}
1717

18-
['@test throws deprecation with new (> 1 arg)'](assert) {
19-
assert.throws(() => {
18+
['@test throws deprecation with new (> 1 arg)']() {
19+
expectDeprecation(() => {
2020
new CoreObject(
2121
{
2222
firstName: 'Stef',

0 commit comments

Comments
 (0)