Skip to content

Commit 3a3cdfd

Browse files
MarshallOfSoundmalept
authored andcommitted
fix(tests): fix test failures caused by config structure changes
1 parent 2457119 commit 3a3cdfd

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

src/init/init-npm.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export const devDeps = ['babel-preset-env', 'babel-preset-react', 'babel-plugin-
1414
export const exactDevDeps = ['electron-prebuilt-compile'];
1515
export const standardDeps = ['standard'];
1616
export const airbnDeps = ['eslint', 'eslint-config-airbnb', 'eslint-plugin-import',
17-
'eslint-plugin-jsx-a11y', 'eslint-plugin-react'];
17+
'eslint-plugin-jsx-a11y@^3.0.0', 'eslint-plugin-react'];
1818

1919
export default async (dir, lintStyle) => {
2020
await asyncOra('Initializing NPM Module', async () => {

test/fast/forge-config_spec.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,23 @@ const defaults = {
1515
electronWinstallerConfig: {},
1616
electronInstallerDebian: {},
1717
electronInstallerRedhat: {},
18+
publish_targets: {
19+
win32: ['github'],
20+
darwin: ['github'],
21+
linux: ['github'],
22+
mas: ['github'],
23+
},
1824
};
1925

2026
describe('forge-config', () => {
2127
it('should resolve the object in package.json with defaults if one exists', async () => {
2228
expect(await findConfig(path.resolve(__dirname, '../fixture/dummy_app'))).to.be.deep.equal(Object.assign({}, defaults, {
2329
electronWinstallerConfig: { windows: 'magic' },
2430
windowsStoreConfig: { packageName: 'test' },
31+
github_repository: {
32+
name: 'project',
33+
owner: 'dummy',
34+
},
2535
}));
2636
});
2737

0 commit comments

Comments
 (0)