Skip to content
Permalink
Browse files

fix: add prepareConfig calls to tests

  • Loading branch information
MarshallOfSound committed Jun 27, 2018
1 parent 19e0543 commit 085c75d3fe4508b50afa4d21fa8e9e9924eaf81f
@@ -1,5 +1,8 @@

export default class Maker {
// Just so the maker isn't excluded
platforms = [process.platform];

async lol() {
// lol
}
@@ -1,4 +1,7 @@
export default class Maker {
// Just so the maker isn't excluded
platforms = [process.platform];

isSupportedOnCurrentPlatform() {
return false;
}
@@ -304,6 +304,7 @@ describe(`electron-forge API (with installer=${nodeInstaller})`, () => {
})
.map(makerPath => () => ({
name: makerPath,
platforms: [process.platform],
config: {
devCert,
},
@@ -36,6 +36,7 @@ describe('MakerDeb', () => {
createMaker = () => {
maker = new MakerDeb(config, []); // eslint-disable-line
maker.ensureFile = ensureFileStub;
maker.prepareConfig(targetArch as any);
};
createMaker();
});
@@ -40,6 +40,7 @@ describe('MakerDMG', () => {
createMaker = () => {
maker = new MakerDMG(config);
maker.ensureFile = ensureFileStub;
maker.prepareConfig(targetArch as any);
};
createMaker();
});
@@ -38,6 +38,7 @@ describe('MakerFlatpak', () => {
createMaker = () => {
maker = new flatpakModule(config); // eslint-disable-line
maker.ensureDirectory = ensureDirectoryStub;
maker.prepareConfig(targetArch as any);
};
createMaker();
});
@@ -42,6 +42,7 @@ describe('MakerPKG', () => {
createMaker = () => {
maker = new MakerDMG(config);
maker.ensureFile = ensureFileStub;
maker.prepareConfig(targetArch as any);
};
createMaker();
});
@@ -36,6 +36,7 @@ describe('MakerRpm', () => {
createMaker = () => {
maker = new rpmModule(config); // eslint-disable-line
maker.ensureFile = ensureFileStub;
maker.prepareConfig(targetArch as any);
};
createMaker();
});
@@ -34,6 +34,7 @@ describe('MakerSnap', () => {
createMaker = () => {
maker = new MakerSnapModule(config); // eslint-disable-line
maker.ensureDirectory = ensureDirectoryStub;
maker.prepareConfig(targetArch as any);
};
createMaker();
});
@@ -49,10 +50,10 @@ describe('MakerSnap', () => {
});

it('should have config cascade correctly', async () => {
config = {
Object.assign(config, {
arch: 'overridden',
description: 'Snap description',
} as any;
} as any);
createMaker();

await (maker.make as any)({ dir, makeDir, appName, targetArch, packageJSON });
@@ -6778,7 +6778,7 @@ pretty-ms@^3.2.0:
dependencies:
parse-ms "^1.0.0"

private@^0.1.6, private@^0.1.8:
private@^0.1.6:
version "0.1.8"
resolved "https://registry.yarnpkg.com/private/-/private-0.1.8.tgz#2381edb3689f7a53d653190060fcf822d2f368ff"

0 comments on commit 085c75d

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