Skip to content

Commit

Permalink
Update eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
lo1tuma committed May 23, 2017
1 parent aa33719 commit c52211e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@
"chai": "3.5.0",
"chai-as-promised": "5.3.0",
"coveralls": "2.11.9",
"eslint": "2.11.1",
"eslint-config-holidaycheck": "0.9.0",
"eslint-plugin-mocha": "3.0.0",
"eslint": "3.19.0",
"eslint-config-holidaycheck": "0.11.0",
"eslint-plugin-mocha": "4.9.0",
"mocha": "2.5.3",
"nyc": "^10.3.2",
"proxyquire": "1.7.9",
Expand Down
11 changes: 5 additions & 6 deletions test/unit/lib/cliSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,10 @@ describe('CLI', function () {
ensureCleanLocalGitState.rejects('Local copy is not clean');
createChangelog.returns('sloppy changelog');
return cli.run('1.0 ', { sloppy: true })
.then(function () {
expect(prependFile).to.have.been.calledOnce;
expect(prependFile).to.have.been.calledWith('/foo/CHANGELOG.md', 'sloppy changelog');
});
.then(function () {
expect(prependFile).to.have.been.calledOnce;
expect(prependFile).to.have.been.calledWith('/foo/CHANGELOG.md', 'sloppy changelog');
});
});

describe('custom labels', function () {
Expand All @@ -67,8 +67,7 @@ describe('CLI', function () {
const expectedGithubRepo = 'foo/bar';
createChangelog.returns('generated changelog');

return cli.run('1.0.0', options)
.then(function () {
return cli.run('1.0.0', options).then(function () {
expect(ensureCleanLocalGitState).to.have.been.calledOnce;
expect(ensureCleanLocalGitState).to.have.been.calledWith(expectedGithubRepo);

Expand Down

0 comments on commit c52211e

Please sign in to comment.