Skip to content

fix: bump tests to release #656

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 20, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ before_script:
- git version
script:
- npm run test
- npm run check-coverage
after_success:
- npm run report-coverage
- npm run semantic-release
Expand Down
1 change: 1 addition & 0 deletions src/commitizen.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* istanbul ignore file */
import * as adapter from './commitizen/adapter';
import * as cache from './commitizen/cache';
import commit from './commitizen/commit';
Expand Down
1 change: 1 addition & 0 deletions src/configLoader.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* istanbul ignore file */
import findup from './configLoader/findup';
import getContent from './configLoader/getContent';
import getNormalizedConfig from './configLoader/getNormalizedConfig';
Expand Down
1 change: 1 addition & 0 deletions src/git.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* istanbul ignore file */
import { addPath, addFile } from './git/add';
import { commit } from './git/commit';
import { init } from './git/init';
Expand Down
24 changes: 24 additions & 0 deletions test/tests/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,30 @@ describe('init', function () {

});

it('installs an commitizen with includeCommitizen', function () {

this.timeout(config.maxTimeout); // this could take a while

// SETUP

// Add a first adapter
sh.cd(config.paths.endUserRepo);
commitizenInit(sh, config.paths.endUserRepo, 'cz-conventional-changelog', { includeCommitizen: true });
let packageJson = util.getParsedPackageJsonFromPath(config.paths.endUserRepo);

// TEST
expect(packageJson.devDependencies).to.have.property('cz-conventional-changelog');
expect(packageJson.devDependencies).to.have.property('commitizen');
let range = packageJson.devDependencies['cz-conventional-changelog'];

// It should satisfy the requirements of a range
expect(semver.validRange(range)).to.not.equal(null);

// But you CAN increment a single version
expect(semver.inc(range, 'major')).not.to.equal(null);

});

it('installs an adapter with --yarn', function () {

this.timeout(config.maxTimeout); // this could take a while
Expand Down