Skip to content

Commit 767d49c

Browse files
gibarosrmothilal
authored andcommitted
964-CreateHapiPluginToValidateErrorCodesOnPreHandler (#72)
* 964-CreateHapiPluginToValidateErrorCodesOnPreHandler * 964-ValidateErrorCodes -add takeover() to onPreHandler plugin response -add toApiErrorObject() -instead of obtaining the response from the request object, obtain the payload and specifically its error code -change boolean if validateFspiopErrorCode to null check * 964-ValidateIncomingErrorCodes -let code execution continue if valid mojaloop error code received -add dependency check and update scripts -add unit tests to cover onPreHandler function * 964-ValidateIncomingErrorCodes -add unit test to meet code coverage requirement * 964-ValidateIncomingErrorCodes -update unit test to cover 2 invalid error codes, for invalid category and invalid specific error * 964-FixVulnerabilityCheck -add .ncurc.yml -add prune run command * Issue964-AddAndConfigureNyc * Issue964-UpdateDependencies -remove istanbul -run update dep check -rename pretest to standard * Issue964-RenameAuditResolvToAuditResolve * Issue964-RenameOnPreHandlerToValidateIncomingErrorCode * RemovedUnusedSinonImport * Issue964-BumpRepoVersionTo8dot2dot0 * Issue964-UpdateNcurcAndNycrc
1 parent 9d4ae65 commit 767d49c

10 files changed

Lines changed: 3271 additions & 1123 deletions

File tree

‎.circleci/config.yml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,9 @@ jobs:
164164
- checkout
165165
- restore_cache:
166166
key: dependency-cache-{{ checksum "package.json" }}
167+
- run:
168+
name: Prune non-production packages before running license-scanner
169+
command: npm prune --production
167170
- run:
168171
name: Run the license-scanner
169172
command: cd /tmp/license-scanner && pathToRepo=$CIRCLE_WORKING_DIRECTORY make run

‎.istanbul.yml‎

Lines changed: 0 additions & 13 deletions
This file was deleted.

‎.ncurc.yml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"reject": []
3+
}

‎.nycrc.yml‎

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
temp-directory: "./.nyc_output"
2+
check-coverage: true
3+
per-file: true
4+
lines: 90
5+
statements: 90
6+
functions: 90
7+
branches: 90
8+
all: true
9+
include: [
10+
"src/**/*.js"
11+
]
12+
reporter: [
13+
"lcov",
14+
"text-summary"
15+
]
16+
exclude: [
17+
"**/node_modules/**"
18+
]
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,5 +79,11 @@
7979
},
8080
"755|istanbul>istanbul-api>istanbul-reports>handlebars": {
8181
"fix": 1
82+
},
83+
"1164|istanbul>istanbul-api>istanbul-reports>handlebars": {
84+
"fix": 1
85+
},
86+
"1164|nyc>istanbul-reports>handlebars": {
87+
"fix": 1
8288
}
8389
}

0 commit comments

Comments
 (0)