Skip to content
Permalink
Browse files

fix(tests): fix forge config deletion tests on all platforms

  • Loading branch information
MarshallOfSound authored and malept committed Feb 16, 2017
1 parent 7432e03 commit 7b99e8470b3e6f916e68bb0aec630d468d3bef4f
Showing with 6 additions and 1 deletion.
  1. +6 −1 test/slow/api_spec_slow.js
@@ -167,9 +167,14 @@ describe(`electron-forge API (with installer=${installer.substr(12)})`, () => {
});

describe('after package', () => {
let resourcesPath = 'electron-forge-test.app/Contents/Resources';
if (process.platform !== 'darwin') {
resourcesPath = 'resources';
}

it('should have deleted the forge config from the packaged app', async () => {
const cleanPackageJSON = await readPackageJSON(
path.resolve(dir, 'out', `electron-forge-test-${process.platform}-${process.arch}`, 'electron-forge-test.app', 'Contents', 'Resources', 'app')
path.resolve(dir, 'out', `electron-forge-test-${process.platform}-${process.arch}`, resourcesPath, 'app')
);
expect(cleanPackageJSON).to.not.have.deep.property('config.forge');
});

0 comments on commit 7b99e84

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