Open ges134 opened 5 years ago
Right now, the controllers call factories or create the dependencies themselves, making it nearly impossible to properly test it. Let's change this.
controllers/ledger.ts have an exemple where we can inject dependencies. With Sinon, it should be easy to create mocks and stubs
controllers/ledger.ts
Right now, the controllers call factories or create the dependencies themselves, making it nearly impossible to properly test it. Let's change this.