refactor: change provide(...) for {provide: ...}
- provide() is deprecated, - {} syntax is required by the offline compiler
This commit is contained in:
@ -15,10 +15,11 @@ main() {
|
||||
await driver
|
||||
.get('http://localhost:8002/playground/src/benchpress/index.html');
|
||||
|
||||
var bindings = [
|
||||
bind(WebDriverAdapter)
|
||||
.toFactory(() => new AsyncWebDriverAdapter(driver), [])
|
||||
];
|
||||
var bindings = [{
|
||||
provide: WebDriverAdapter,
|
||||
useFactory: () => new AsyncWebDriverAdapter(driver),
|
||||
deps: []
|
||||
}];
|
||||
runner = new Runner(bindings);
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user