prettier
This commit is contained in:
parent
8ed25df485
commit
60d34f8817
|
@ -4,7 +4,10 @@
|
|||
"description": "",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
"lint": "eslint .",
|
||||
"eslint": "eslint --ext .js --ignore-path .gitignore .",
|
||||
"prettier:check": "npx prettier --check . --config .prettierrc",
|
||||
"prettier:fix": "npx prettier --write . --config .prettierrc",
|
||||
"lint": "yarn eslint && yarn prettier:check",
|
||||
"test": "mocha --timeout 300000"
|
||||
},
|
||||
"keywords": [],
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/**
|
||||
* A promise that resolves after `ms` milliseconds
|
||||
*/
|
||||
const sleep = (ms) => new Promise((res) => setTimeout(res, ms))
|
||||
const sleep = ms => new Promise(res => setTimeout(res, ms))
|
||||
|
||||
/**
|
||||
* A promise that resolves when the source emits specified event
|
||||
|
|
|
@ -32,9 +32,9 @@ describe('TxManager', () => {
|
|||
|
||||
const receipt = await tx
|
||||
.send()
|
||||
.on('transactionHash', (hash) => console.log('hash', hash))
|
||||
.on('mined', (receipt) => console.log('Mined in block', receipt.blockNumber))
|
||||
.on('confirmations', (confirmations) => console.log('confirmations', confirmations))
|
||||
.on('transactionHash', hash => console.log('hash', hash))
|
||||
.on('mined', receipt => console.log('Mined in block', receipt.blockNumber))
|
||||
.on('confirmations', confirmations => console.log('confirmations', confirmations))
|
||||
|
||||
console.log('receipt', receipt)
|
||||
})
|
||||
|
@ -46,9 +46,9 @@ describe('TxManager', () => {
|
|||
|
||||
const receipt = await tx
|
||||
.send()
|
||||
.on('transactionHash', (hash) => console.log('hash', hash))
|
||||
.on('mined', (receipt) => console.log('Mined in block', receipt.blockNumber))
|
||||
.on('confirmations', (confirmations) => console.log('confirmations', confirmations))
|
||||
.on('transactionHash', hash => console.log('hash', hash))
|
||||
.on('mined', receipt => console.log('Mined in block', receipt.blockNumber))
|
||||
.on('confirmations', confirmations => console.log('confirmations', confirmations))
|
||||
|
||||
console.log('receipt', receipt)
|
||||
})
|
||||
|
@ -60,9 +60,9 @@ describe('TxManager', () => {
|
|||
|
||||
const receipt = await tx
|
||||
.send()
|
||||
.on('transactionHash', (hash) => console.log('hash', hash))
|
||||
.on('mined', (receipt) => console.log('Mined in block', receipt.blockNumber))
|
||||
.on('confirmations', (confirmations) => console.log('confirmations', confirmations))
|
||||
.on('transactionHash', hash => console.log('hash', hash))
|
||||
.on('mined', receipt => console.log('Mined in block', receipt.blockNumber))
|
||||
.on('confirmations', confirmations => console.log('confirmations', confirmations))
|
||||
|
||||
console.log('receipt', receipt)
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue