refactor(di): cleanup to make dartanalyzer happy
This commit is contained in:
@ -208,7 +208,7 @@ export function main() {
|
||||
bind(Engine).toFactory(() => isBroken ? new BrokenEngine() : new Engine())
|
||||
]);
|
||||
|
||||
expect(() => injector.get(Car)).toThrow();
|
||||
expect(() => injector.get(Car)).toThrowError(new RegExp("Error"));
|
||||
|
||||
isBroken = false;
|
||||
|
||||
|
Reference in New Issue
Block a user