We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4977b3c commit 69cf1d3Copy full SHA for 69cf1d3
tests/registry-test.ts
@@ -35,4 +35,19 @@ module('Registry', function (hooks) {
35
assert.ok(metaGlob);
36
assert.ok(metaGlob.weDidIt);
37
});
38
+
39
+ test('registered stuff can be looked up', function (assert) {
40
+ class Foo {
41
+ static create() {
42
+ return new this();
43
+ }
44
45
+ two = 2;
46
47
+ this.owner.register('not-standard:main', Foo);
48
49
+ const value = this.owner.lookup('not-standard:main') as Foo;
50
51
+ assert.strictEqual(value.two, 2);
52
+ });
53
0 commit comments