Skip to content

Commit 80ab47e

Browse files
committed
docs: fix minor variable typo in example
1 parent 13b25ac commit 80ab47e

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -82,20 +82,20 @@ import { Installer } from 'fiddle-core';
8282

8383
const installer = new Installer();
8484
installer.on('state-changed', (version, state) => {
85-
console.log(`Version "${version}" state changed: "${state}");
85+
console.log(`Version "${version}" state changed: "${state}"`);
8686
});
8787

8888
// 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');
9191

9292
// 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');
9595

9696
// 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');
9999
// expect(fs.accessSync(exec, fs.constants.X_OK)).toBe(true);
100100
```
101101

0 commit comments

Comments
 (0)