Skip to content

Commit

Permalink
Poking around
Browse files Browse the repository at this point in the history
  • Loading branch information
NullVoxPopuli committed Aug 15, 2024
1 parent ff604ae commit e01d476
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,16 @@ import require, { has } from 'require';
import Ember from 'ember';

import type { FullName } from '@ember/owner';
import type Owner from '@ember/owner';

// These shenanigans work around the fact that the import locations are not
// public API and are not stable, so we jump through hoops to get the right
// types and values to use.
import {
ContainerProxyMixin,
RegistryProxyMixin,
type _RegistryProxyMixin,
type _ContainerProxyMixin,
} from './-owner-mixin-imports';

/**
Expand Down Expand Up @@ -53,7 +56,6 @@ function exposeRegistryMethodsWithoutDeprecations(container: any) {
// NOTE: this is the same as what `EngineInstance`/`ApplicationInstance`
// implement, and is thus a superset of the `InternalOwner` contract from Ember
// itself.
interface Owner extends RegistryProxyMixin, ContainerProxyMixin {}
const Owner = EmberObject.extend(RegistryProxyMixin, ContainerProxyMixin, {
_emberTestHelpersMockOwner: true,

Expand Down

0 comments on commit e01d476

Please sign in to comment.