Skip to content

Commit

Permalink
fix(tests): fix test failures caused by config structure changes
Browse files Browse the repository at this point in the history
  • Loading branch information
MarshallOfSound authored and malept committed Feb 5, 2017
1 parent 2457119 commit 3a3cdfd
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/init/init-npm.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export const devDeps = ['babel-preset-env', 'babel-preset-react', 'babel-plugin-
export const exactDevDeps = ['electron-prebuilt-compile'];
export const standardDeps = ['standard'];
export const airbnDeps = ['eslint', 'eslint-config-airbnb', 'eslint-plugin-import',
'eslint-plugin-jsx-a11y', 'eslint-plugin-react'];
'eslint-plugin-jsx-a11y@^3.0.0', 'eslint-plugin-react'];

export default async (dir, lintStyle) => {
await asyncOra('Initializing NPM Module', async () => {
Expand Down
10 changes: 10 additions & 0 deletions test/fast/forge-config_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,23 @@ const defaults = {
electronWinstallerConfig: {},
electronInstallerDebian: {},
electronInstallerRedhat: {},
publish_targets: {
win32: ['github'],
darwin: ['github'],
linux: ['github'],
mas: ['github'],
},
};

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

Expand Down

0 comments on commit 3a3cdfd

Please sign in to comment.