File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -82,20 +82,20 @@ import { Installer } from 'fiddle-core';
82
82
83
83
const installer = new Installer ();
84
84
installer .on (' state-changed' , (version , state ) => {
85
- console .log (` Version "${version }" state changed: "${state }");
85
+ console .log (` Version "${version }" state changed: "${state }" ` );
86
86
});
87
87
88
88
// download a version of electron
89
- await electron .ensureDownloaded('12.0.15');
90
- // expect(electron .state('12.0.5').toBe('downloaded');
89
+ await installer .ensureDownloaded (' 12.0.15' );
90
+ // expect(installer .state('12.0.5').toBe('downloaded');
91
91
92
92
// remove a download
93
- await electron .remove('12.0.15');
94
- // expect(electron .state('12.0.15').toBe('not-downloaded');
93
+ await installer .remove (' 12.0.15' );
94
+ // expect(installer .state('12.0.15').toBe('not-downloaded');
95
95
96
96
// install a specific version for the runner to use
97
- const exec = await electron .install('11.4.10');
98
- // expect(electron .state('11.4.10').toBe('installed');
97
+ const exec = await installer .install (' 11.4.10' );
98
+ // expect(installer .state('11.4.10').toBe('installed');
99
99
// expect(fs.accessSync(exec, fs.constants.X_OK)).toBe(true);
100
100
```
101
101
You can’t perform that action at this time.
0 commit comments