Skip to content

Commit 825137a

Browse files
author
Julien Heller
committed
Use Service decorator in appropriate test file
1 parent 48d4ae9 commit 825137a

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

test/decorators/Service.spec.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,8 +187,13 @@ describe("Service Decorator", function() {
187187
it("should support services with asynchronous initialization", async function() {
188188

189189
@Service({ asyncInitialization: true })
190-
class Engine extends AsyncInitializedService {
190+
class Engine {
191191
ignition: string = "off";
192+
initialized: Promise<any>;
193+
194+
constructor() {
195+
this.initialized = this.initialize();
196+
}
192197

193198
protected initialize() {
194199
return new Promise((resolve) => {

0 commit comments

Comments
 (0)