Fix Linting and Enable ES6 Syntax

Fix a small linting issue and add the es6 tag to handle
the return of a Promise as it is not defined in the ECMA
spec.

Signed-off-by: Brett Logan <lindluni@github.com>
This commit is contained in:
Brett Logan 2021-02-08 09:54:50 -05:00 committed by denyeart
parent 65b3741a93
commit 2907329c20
2 changed files with 3 additions and 2 deletions

View file

@ -6,7 +6,8 @@
module.exports = {
env: {
node: true,
mocha: true
mocha: true,
es6: true
},
parserOptions: {
ecmaVersion: 8,

View file

@ -320,7 +320,7 @@ async function main() {
} catch (deleteError) {
console.log(`${RED}<-- Failed: DeleteAsset - ${deleteError}${RESET}`);
if (deleteError.toString().includes('ENDORSEMENT_POLICY_FAILURE')) {
console.log(`${RED}Be sure that chaincode was deployed with the endorsement policy "OR('Org1MSP.peer','Org2MSP.peer')"${RESET}`)
console.log(`${RED}Be sure that chaincode was deployed with the endorsement policy "OR('Org1MSP.peer','Org2MSP.peer')"${RESET}`);
}
}
try {