Skip to content
Permalink
Browse files

chore(core): re-enable built-in template tests (#876)

  • Loading branch information
malept committed May 25, 2019
1 parent b0e019f commit 23a0cab67591f5ebe24e170da7b9ebd39cabbe8b
Showing with 5 additions and 5 deletions.
  1. +5 −5 packages/api/core/test/slow/api_spec_slow.ts
@@ -104,25 +104,25 @@ describe(`electron-forge API (with installer=${nodeInstaller})`, () => {
});
});

describe.skip('init (with built-in templater)', () => {
describe('init (with built-in templater)', () => {
before(ensureTestDirIsNonexistent);

it('should succeed in initializing', async () => {
await forge.init({
dir,
template: 'react-typescript',
template: 'webpack',
});
});

it('should fail in initializing an already initialized directory', async () => {
await expect(forge.init({
dir,
template: 'react-typescript',
template: 'webpack',
})).to.eventually.be.rejected;
});

it('should add a dependency on react', async () => {
expect(Object.keys(require(path.resolve(dir, 'package.json')).dependencies)).to.contain('react');
it('should add a devDependency on @electron-forge/plugin-webpack', async () => {
expect(Object.keys(require(path.resolve(dir, 'package.json')).devDependencies)).to.contain('@electron-forge/plugin-webpack');
});

after(async () => {

0 comments on commit 23a0cab

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