Skip to content

Commit 5ad54b3

Browse files
committed
compliant fixes for errors by --target es6
1 parent 7f4a857 commit 5ad54b3

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

github-electron/github-electron-main-tests.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,11 @@ import {
1616
crashReporter,
1717
nativeImage,
1818
screen,
19-
shell
19+
shell,
20+
hideInternalModules
2021
} from 'electron';
2122

22-
require('electron').hideInternalModules();
23-
24-
import path = require('path');
23+
import * as path from 'path';
2524

2625
// Quick start
2726
// https://github.com/atom/electron/blob/master/docs/tutorial/quick-start.md

github-electron/github-electron-renderer-tests.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import {
1010
shell
1111
} from 'electron';
1212

13-
import fs = require('fs');
13+
import * as fs from 'fs';
1414

1515
// In renderer process (web page).
1616
// https://github.com/atom/electron/blob/master/docs/api/ipc-renderer.md

0 commit comments

Comments
 (0)