Fix ember tests for TS 3.9 (#44159)

TS 3.9 now forbids deleting properties that aren't optional or undefined. This
exposed a bug in ember tests where the tests were deleting a property
with the type `{} | null`. I changed the type to `{} | undefined` to
reflect what will actually happen at runtime.
This commit is contained in:
Nathan Shively-Sanders 2020-04-26 10:09:27 -07:00 committed by GitHub
parent 402f540b7d
commit 9e4968cf95
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -1,7 +1,7 @@
import Ember from 'ember';
const LifetimeHooks = Ember.Object.extend({
resource: null as {} | null,
resource: undefined as {} | undefined,
init() {
this._super();

View File

@ -1,7 +1,7 @@
import Ember from 'ember';
const LifetimeHooks = Ember.Object.extend({
resource: null as {} | null,
resource: undefined as {} | undefined,
init() {
this._super();

View File

@ -1,7 +1,7 @@
import EmberObject, { computed, notifyPropertyChange } from "@ember/object";
const LifetimeHooks = EmberObject.extend({
resource: null as {} | null,
resource: undefined as {} | undefined,
init() {
this._super();