Skip to content
Permalink
Browse files

feat(core): add support for electron-nightly

  • Loading branch information
malept committed Jan 8, 2019
1 parent 9b498a2 commit a74169ee6458c2d3235fd020ba4f3f26b9f37257
@@ -5,6 +5,7 @@ const d = debug('electron-forge:electron-version');
const electronPackageNames = [
'electron-prebuilt-compile',
'electron-prebuilt',
'electron-nightly',
'electron',
];

@@ -52,6 +52,13 @@ describe('getElectronVersion', () => {
expect(getElectronVersion(packageJSON)).to.be.equal('1.0.0');
});

it('works with electron-nightly', () => {
const packageJSON = {
devDependencies: { 'electron-nightly': '5.0.0-nightly.20190107' },
};
expect(getElectronVersion(packageJSON)).to.be.equal('5.0.0-nightly.20190107');
});

it('works with electron', () => {
const packageJSON = {
devDependencies: { electron: '1.0.0' },

0 comments on commit a74169e

Please sign in to comment.
You can’t perform that action at this time.