Skip to content
Permalink
Browse files

fix(tests): ensure test project has proper metadata filled

  • Loading branch information
malept committed Feb 1, 2017
1 parent b1e9053 commit 0bc81858b85901c75c9646aa26c8f0e5dbc9fcc3
Showing with 8 additions and 3 deletions.
  1. +8 −3 test/slow/api_spec_slow.js
@@ -152,9 +152,14 @@ describe(`electron-forge API (with installer=${installer.substr(12)})`, () => {
dir = path.resolve(os.tmpdir(), `electron-forge-test-${dirID}/electron-forge-test`);
dirID += 1;
await forge.init({ dir });
const newPackageJSON = await readPackageJSON(dir);
newPackageJSON.config.forge.electronPackagerConfig.asar = false;
await fs.writeFile(path.resolve(dir, 'package.json'), JSON.stringify(newPackageJSON, null, 2));

const packageJSON = await readPackageJSON(dir);
packageJSON.name = 'testapp';
packageJSON.productName = 'Test App';
packageJSON.config.forge.electronPackagerConfig.asar = false;
packageJSON.config.forge.windowsStoreConfig.packageName = 'TestApp';
packageJSON.author = 'Test Author';
await fs.writeFile(path.resolve(dir, 'package.json'), JSON.stringify(packageJSON, null, 2));
});

it('can package without errors', async () => {

0 comments on commit 0bc8185

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