Skip to content
This repository has been archived by the owner on Jun 16, 2021. It is now read-only.

Commit

Permalink
test: 💍 check prompter method is exported for Commitizen
Browse files Browse the repository at this point in the history
  • Loading branch information
streamich committed Jun 5, 2018
1 parent e53bb97 commit 1dcf01a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@
"homepage": "https://github.com/streamich/git-cz",
"license": "Unlicense",
"scripts": {
"test": "mocha",
"lint": "yarn eslint",
"clean": "rimraf dist",
"build": "yarn build:cli && yarn build:cz",
"build:cli": "browserify --node -o dist/cli.js lib/cli.js",
"build:cz": "browserify --node -o dist/cz.js --standalone prompter lib/cz.js",
"eslint": "eslint lib/*.js",
"test": "mocha",
"precommit": "yarn lint",
"semantic-release": "semantic-release pre && npm publish && semantic-release post",
"lint": "yarn eslint"
"eslint": "eslint lib/*.js"
},
"devDependencies": {
"mocha": "^5.2.0",
Expand Down
8 changes: 7 additions & 1 deletion test/cz.test.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
const cz = require('../dist/cz');

describe('commitizen', () => {
it('works');
it('exports prompter function', () => {
if (typeof cz.prompter !== 'function') {
throw new TypeError('Expected to export "prompter" function for Commitizen.');
}
});
});

0 comments on commit 1dcf01a

Please sign in to comment.