Skip to content

Commit

Permalink
chore(deps): Bump deps to latest
Browse files Browse the repository at this point in the history
chore(lint): Format code with prettier before linting
  • Loading branch information
anishkny committed Aug 18, 2019
1 parent ba31ab6 commit 5d98266
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 15 deletions.
23 changes: 12 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,28 +25,29 @@
"lib"
],
"scripts": {
"lint": "tslint --project ./tsconfig.json",
"format": "prettier --check --write {src,test}/*.{ts,js} {src,test}/**/*.{ts,js}",
"lint": "npm run format && tslint --project ./tsconfig.json",
"build": "npm run lint && tsc",
"test": "npm run build && ./test/test.sh"
},
"devDependencies": {
"ava": "^1.4.1",
"firebase-admin": "^7.3.0",
"firebase-functions": "^2.3.0",
"ava": "^2.3.0",
"firebase-admin": "^8.3.0",
"firebase-functions": "^3.2.0",
"firebase-functions-test": "^0.1.6",
"nyc": "^13.0.0",
"nyc": "^13.3.0",
"prettier": "^1.18.2",
"standard-version": "^5.0.2",
"tslint": "^5.16.0",
"standard-version": "^7.0.0",
"tslint": "^5.18.0",
"tslint-config-prettier": "^1.18.0",
"typescript": "^3.4.4"
"typescript": "^3.5.3"
},
"peerDependencies": {
"firebase-admin": "^7.3.0",
"firebase-functions": "^2.3.0"
"firebase-admin": "^8.3.0",
"firebase-functions": "^3.2.0"
},
"optionalDependencies": {
"coveralls": "^3.0.3"
"coveralls": "^3.0.6"
},
"dependencies": {
"caller-path": "^2.0.0"
Expand Down
6 changes: 2 additions & 4 deletions test/unit.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -196,16 +196,14 @@ async function testMaintainCount(sut, t) {
}

test('test error conditions', async t => {
t.throws(() => integrify({}), Error, /Input must be rule or config/i);
t.throws(() => integrify({}), /Input must be rule or config/i);
t.throws(
() => integrify({ rule: 'UNKNOWN_RULE_4a4e261a2e37' }),
Error,
/Unknown rule/i
);
t.throws(() => require('./functions-bad-rules-file'), Error, /Unknown rule/i);
t.throws(() => require('./functions-bad-rules-file'), /Unknown rule/i);
t.throws(
() => require('./functions-absent-rules-file'),
Error,
/Rules file not found/i
);

Expand Down

0 comments on commit 5d98266

Please sign in to comment.