From 69cf1d3fba12a2cf4361beda9fdf2a8c8bdd21d6 Mon Sep 17 00:00:00 2001 From: NullVoxPopuli <199018+NullVoxPopuli@users.noreply.github.com> Date: Sat, 25 Oct 2025 12:12:26 -0400 Subject: [PATCH] Add test for non-standard registrations --- tests/registry-test.ts | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/tests/registry-test.ts b/tests/registry-test.ts index 8f7e766..eb755c1 100644 --- a/tests/registry-test.ts +++ b/tests/registry-test.ts @@ -35,4 +35,19 @@ module('Registry', function (hooks) { assert.ok(metaGlob); assert.ok(metaGlob.weDidIt); }); + + test('registered stuff can be looked up', function (assert) { + class Foo { + static create() { + return new this(); + } + + two = 2; + } + this.owner.register('not-standard:main', Foo); + + const value = this.owner.lookup('not-standard:main') as Foo; + + assert.strictEqual(value.two, 2); + }); });