From bb90bb4117da633f35002ff6fff3dbb20e8a483a Mon Sep 17 00:00:00 2001 From: jan-molak Date: Fri, 25 May 2018 21:25:42 +0100 Subject: [PATCH] chore(deps): Updated dev dependencies --- package.json | 42 ++++++++++----------- spec/pattern-matching/ObjectMatcher.spec.ts | 6 +-- 2 files changed, 24 insertions(+), 24 deletions(-) diff --git a/package.json b/package.json index 35182273..84865ac0 100644 --- a/package.json +++ b/package.json @@ -39,33 +39,33 @@ }, "homepage": "https://github.com/jan-molak/tiny-types#readme", "devDependencies": { - "@types/chai": "4.1.2", - "@types/mocha": "2.2.48", - "@types/node": "9.4.0", - "@types/sinon": "4.1.3", - "@types/sinon-chai": "2.7.29", + "@types/chai": "4.1.3", + "@types/mocha": "5.2.0", + "@types/node": "10.1.2", + "@types/sinon": "5.0.0", + "@types/sinon-chai": "2.7.32", "chai": "4.1.2", "cheerio": "1.0.0-rc.2", - "commitizen": "2.9.6", - "coveralls": "3.0.0", - "cz-conventional-changelog": "^2.1.0", - "esdoc": "1.0.4", - "esdoc-importpath-plugin": "1.0.1", + "commitizen": "2.10.1", + "coveralls": "3.0.1", + "cz-conventional-changelog": "2.1.0", + "esdoc": "1.1.0", + "esdoc-importpath-plugin": "1.0.2", "esdoc-standard-plugin": "1.0.0", - "esdoc-typescript-plugin": "1.0.0", + "esdoc-typescript-plugin": "1.0.1", "gh-pages": "1.1.0", - "mocha": "5.0.0", + "mocha": "5.2.0", "mocha-testdata": "1.2.0", - "nyc": "11.4.1", + "nyc": "11.8.0", "rimraf": "2.6.2", - "semantic-release": "^12.4.1", - "semantic-release-cli": "3.6.2", - "sinon": "4.4.2", - "sinon-chai": "2.14.0", - "travis-deploy-once": "^4.3.3", - "ts-node": "5.0.0", - "tslint": "5.9.1", - "tslint-microsoft-contrib": "5.0.2", + "semantic-release": "15.5.0", + "semantic-release-cli": "4.0.1", + "sinon": "5.0.10", + "sinon-chai": "3.1.0", + "travis-deploy-once": "5.0.0", + "ts-node": "6.0.5", + "tslint": "5.10.0", + "tslint-microsoft-contrib": "5.0.3", "typescript": "2.8.3" }, "config": { diff --git a/spec/pattern-matching/ObjectMatcher.spec.ts b/spec/pattern-matching/ObjectMatcher.spec.ts index db6bf18d..ecca4733 100644 --- a/spec/pattern-matching/ObjectMatcher.spec.ts +++ b/spec/pattern-matching/ObjectMatcher.spec.ts @@ -124,9 +124,9 @@ describe('pattern-matching', () => { ).it('matches object by constructor function', (input: DomainEvent, expected_result: string) => { const result = new ObjectMatcher(input) - .when(AccountCreated, ({account_name}) => `Account created for ${ account_name }`) - .when(AccountConfirmed, ({account_name, email}) => `Account confirmed for ${ account_name } at ${ email }`) - .when(DomainEvent, ({timestamp}) => `Some DomainEvent received`) + .when(AccountCreated, ({account_name}: AccountCreated) => `Account created for ${ account_name }`) + .when(AccountConfirmed, ({account_name, email}: AccountConfirmed) => `Account confirmed for ${ account_name } at ${ email }`) + .when(DomainEvent, ({timestamp}: DomainEvent) => `Some DomainEvent received`) .else(_ => `else, received "${_}"`); expect(result).to.equal(expected_result);