Skip to content
Permalink
Browse files

fix(tests): fix test failures caused by config structure changes

  • Loading branch information
MarshallOfSound authored and malept committed Feb 5, 2017
1 parent 2457119 commit 3a3cdfdbaf627f2ee7d597b817f2981e0cf3c77f
Showing with 11 additions and 1 deletion.
  1. +1 −1 src/init/init-npm.js
  2. +10 −0 test/fast/forge-config_spec.js
@@ -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 () => {
@@ -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',
},
}));
});

0 comments on commit 3a3cdfd

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