thiagobustamante / typescript-ioc

A Lightweight annotation-based dependency injection container for typescript.
MIT License
526 stars 64 forks source link

Change the value of an injected property is not working #13

Closed thiagobustamante closed 6 years ago

thiagobustamante commented 6 years ago
class Test{
   @IoC.Inject abc: number = 123;
}   

const instance: Test = new Test();
const instance2: Test = new Test();
instance2.abc = 234;

expect(instance.abc).to.eq(123);
expect(instance2.abc).to.eq(234);

This test fail.