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 48d4ae9 commit 825137aCopy full SHA for 825137a
test/decorators/Service.spec.ts
@@ -187,8 +187,13 @@ describe("Service Decorator", function() {
187
it("should support services with asynchronous initialization", async function() {
188
189
@Service({ asyncInitialization: true })
190
- class Engine extends AsyncInitializedService {
+ class Engine {
191
ignition: string = "off";
192
+ initialized: Promise<any>;
193
+
194
+ constructor() {
195
+ this.initialized = this.initialize();
196
+ }
197
198
protected initialize() {
199
return new Promise((resolve) => {
0 commit comments